ROS2SensorsModuleInterface.cpp 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 "ROS2SensorsModuleInterface.h"
  9. #include <AzCore/Memory/Memory.h>
  10. #include <Clients/ROS2SensorsSystemComponent.h>
  11. #include <ROS2Sensors/ROS2SensorsTypeIds.h>
  12. #include <Camera/PostProcessing/ROS2ImageEncodingConversionComponent.h>
  13. #include <Camera/ROS2CameraSensorComponent.h>
  14. #include <Camera/ROS2CameraSystemComponent.h>
  15. #include <ContactSensor/ROS2ContactSensorComponent.h>
  16. #include <GNSS/ROS2GNSSSensorComponent.h>
  17. #include <Imu/ROS2ImuSensorComponent.h>
  18. #include <Lidar/ClassSegmentationConfigurationComponent.h>
  19. #include <Lidar/LidarRegistrarSystemComponent.h>
  20. #include <Lidar/ROS2Lidar2DSensorComponent.h>
  21. #include <Lidar/ROS2LidarSensorComponent.h>
  22. #include <Odometry/ROS2OdometrySensorComponent.h>
  23. namespace ROS2Sensors
  24. {
  25. AZ_TYPE_INFO_WITH_NAME_IMPL(ROS2SensorsModuleInterface, "ROS2SensorsModuleInterface", ROS2SensorsModuleInterfaceTypeId);
  26. AZ_RTTI_NO_TYPE_INFO_IMPL(ROS2SensorsModuleInterface, AZ::Module);
  27. AZ_CLASS_ALLOCATOR_IMPL(ROS2SensorsModuleInterface, AZ::SystemAllocator);
  28. ROS2SensorsModuleInterface::ROS2SensorsModuleInterface()
  29. {
  30. m_descriptors.insert(
  31. m_descriptors.end(),
  32. {
  33. ROS2SensorsSystemComponent::CreateDescriptor(),
  34. ROS2CameraSensorComponent::CreateDescriptor(),
  35. ROS2SystemCameraComponent::CreateDescriptor(),
  36. ROS2ImageEncodingConversionComponent::CreateDescriptor(),
  37. ROS2ContactSensorComponent::CreateDescriptor(),
  38. ROS2GNSSSensorComponent::CreateDescriptor(),
  39. ROS2ImuSensorComponent::CreateDescriptor(),
  40. ROS2LidarSensorComponent::CreateDescriptor(),
  41. ROS2Lidar2DSensorComponent::CreateDescriptor(),
  42. ClassSegmentationConfigurationComponent::CreateDescriptor(),
  43. LidarRegistrarSystemComponent::CreateDescriptor(),
  44. ROS2OdometrySensorComponent::CreateDescriptor(),
  45. });
  46. }
  47. AZ::ComponentTypeList ROS2SensorsModuleInterface::GetRequiredSystemComponents() const
  48. {
  49. return AZ::ComponentTypeList{
  50. azrtti_typeid<ROS2SensorsSystemComponent>(),
  51. azrtti_typeid<ROS2SystemCameraComponent>(),
  52. azrtti_typeid<LidarRegistrarSystemComponent>(),
  53. };
  54. }
  55. } // namespace ROS2Sensors