ManipulationUtils.h 708 B

12345678910111213141516171819202122232425
  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. #pragma once
  9. #include <ROS2Controllers/Manipulation/JointInfo.h>
  10. namespace ROS2Controllers::Utils
  11. {
  12. struct JointStateData
  13. {
  14. float position{ 0.f };
  15. float velocity{ 0.f };
  16. float effort{ 0.f };
  17. };
  18. //! Get the current joint state
  19. //! @param jointInfo Info of the joint we want to get data of.
  20. //! @return Data with the current joint state.
  21. JointStateData GetJointState(const JointInfo& jointInfo);
  22. } // namespace ROS2Controllers::Utils