JointInfo.cpp 861 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. #include <ROS2Controllers/Manipulation/JointInfo.h>
  9. namespace ROS2Controllers
  10. {
  11. void JointInfo::Reflect(AZ::ReflectContext* context)
  12. {
  13. if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  14. {
  15. serializeContext->Class<JointInfo>()
  16. ->Version(1)
  17. ->Field("IsArticulation", &JointInfo::m_isArticulation)
  18. ->Field("Axis", &JointInfo::m_axis)
  19. ->Field("EntityComponentIdPair", &JointInfo::m_entityComponentIdPair)
  20. ->Field("RestPosition", &JointInfo::m_restPosition);
  21. }
  22. }
  23. } // namespace ROS2Controllers