2
0

ROS2ModuleInterface.cpp 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 "ROS2ModuleInterface.h"
  9. #include <AzCore/Memory/Memory.h>
  10. #include <Clients/ROS2SystemComponent.h>
  11. #include <ROS2/Frame/ROS2FrameComponent.h>
  12. #include <ROS2/ROS2TypeIds.h>
  13. #include <ROS2/Sensor/Events/PhysicsBasedSource.h>
  14. #include <ROS2/Sensor/Events/TickBasedSource.h>
  15. #include <ROS2/Sensor/ROS2SensorComponentBase.h>
  16. #include <SimulationUtils/FollowingCameraComponent.h>
  17. #include <Spawner/ROS2SpawnPointComponent.h>
  18. #include <Spawner/ROS2SpawnerComponent.h>
  19. namespace ROS2
  20. {
  21. AZ_TYPE_INFO_WITH_NAME_IMPL(ROS2ModuleInterface, "ROS2ModuleInterface", ROS2ModuleInterfaceTypeId);
  22. AZ_RTTI_NO_TYPE_INFO_IMPL(ROS2ModuleInterface, AZ::Module);
  23. AZ_CLASS_ALLOCATOR_IMPL(ROS2ModuleInterface, AZ::SystemAllocator);
  24. ROS2ModuleInterface::ROS2ModuleInterface()
  25. {
  26. m_descriptors.insert(
  27. m_descriptors.end(),
  28. {
  29. ROS2SystemComponent::CreateDescriptor(),
  30. ROS2FrameComponent::CreateDescriptor(),
  31. ROS2SpawnerComponent::CreateDescriptor(),
  32. ROS2SpawnPointComponent::CreateDescriptor(),
  33. FollowingCameraComponent::CreateDescriptor(),
  34. ROS2SensorComponentBase<TickBasedSource>::CreateDescriptor(),
  35. ROS2SensorComponentBase<PhysicsBasedSource>::CreateDescriptor(),
  36. });
  37. }
  38. AZ::ComponentTypeList ROS2ModuleInterface::GetRequiredSystemComponents() const
  39. {
  40. return AZ::ComponentTypeList{
  41. azrtti_typeid<ROS2SystemComponent>(),
  42. };
  43. }
  44. } // namespace ROS2