ROS2FrameConfiguration.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 <AzCore/Component/Component.h>
  10. #include <AzCore/RTTI/RTTI.h>
  11. #include <AzCore/Serialization/SerializeContext.h>
  12. #include <AzCore/std/string/string.h>
  13. #include <ROS2/Frame/NamespaceConfiguration.h>
  14. #include <ROS2/ROS2TypeIds.h>
  15. namespace ROS2
  16. {
  17. class ROS2FrameConfiguration final : public AZ::ComponentConfig
  18. {
  19. public:
  20. AZ_TYPE_INFO(ROS2FrameConfiguration, ROS2FrameConfigurationTypeId);
  21. static void Reflect(AZ::ReflectContext* context);
  22. NamespaceConfiguration m_namespaceConfiguration;
  23. AZStd::string m_frameName = "sensor_frame";
  24. AZStd::string m_jointName;
  25. bool m_publishTransform = true;
  26. bool m_isDynamic = false;
  27. //! Sets the effective namespace shown in the Editor.
  28. //! @param effectiveNamespace namespace to be set.
  29. void SetEffectiveNamespace(const AZStd::string& effectiveNamespace);
  30. private:
  31. AZStd::string m_effectiveNamespace = "";
  32. AZStd::string m_fullName = m_frameName;
  33. };
  34. } // namespace ROS2