JointPositionsSubscriptionHandler.cpp 636 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include "JointPositionsSubscriptionHandler.h"
  9. namespace ROS2Controllers
  10. {
  11. JointPositionsSubscriptionHandler::JointPositionsSubscriptionHandler(MessageCallback messageCallback)
  12. : m_messageCallback(AZStd::move(messageCallback))
  13. {
  14. }
  15. void JointPositionsSubscriptionHandler::SendToBus(const MessageType& message)
  16. {
  17. m_messageCallback(message);
  18. }
  19. } // namespace ROS2Controllers