2
0

ROS2SensorsEditorModule.cpp 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 "ROS2SensorsEditorSystemComponent.h"
  9. #include <ROS2Sensors/ROS2SensorsTypeIds.h>
  10. #include <ROS2SensorsModuleInterface.h>
  11. #include <Camera/ROS2CameraSensorEditorComponent.h>
  12. #include <Camera/ROS2EditorCameraSystemComponent.h>
  13. #include <Lidar/LidarRegistrarEditorSystemComponent.h>
  14. namespace ROS2Sensors
  15. {
  16. class ROS2SensorsEditorModule : public ROS2SensorsModuleInterface
  17. {
  18. public:
  19. AZ_RTTI(ROS2SensorsEditorModule, ROS2SensorsEditorModuleTypeId, ROS2SensorsModuleInterface);
  20. AZ_CLASS_ALLOCATOR(ROS2SensorsEditorModule, AZ::SystemAllocator);
  21. ROS2SensorsEditorModule()
  22. {
  23. m_descriptors.insert(
  24. m_descriptors.end(),
  25. {
  26. ROS2SensorsEditorSystemComponent::CreateDescriptor(),
  27. ROS2CameraSensorEditorComponent::CreateDescriptor(),
  28. ROS2EditorCameraSystemComponent::CreateDescriptor(),
  29. LidarRegistrarEditorSystemComponent::CreateDescriptor(),
  30. });
  31. }
  32. AZ::ComponentTypeList GetRequiredSystemComponents() const override
  33. {
  34. return AZ::ComponentTypeList{
  35. azrtti_typeid<ROS2SensorsEditorSystemComponent>(),
  36. azrtti_typeid<ROS2EditorCameraSystemComponent>(),
  37. azrtti_typeid<LidarRegistrarEditorSystemComponent>(),
  38. };
  39. }
  40. };
  41. } // namespace ROS2Sensors
  42. #if defined(O3DE_GEM_NAME)
  43. AZ_DECLARE_MODULE_CLASS(AZ_JOIN(Gem_, O3DE_GEM_NAME, _Editor), ROS2Sensors::ROS2SensorsEditorModule)
  44. #else
  45. AZ_DECLARE_MODULE_CLASS(Gem_ROS2Sensors_Editor, ROS2Sensors::ROS2SensorsEditorModule)
  46. #endif