ROS2SensorsSystemComponent.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 "ROS2SensorsSystemComponent.h"
  9. #include <AzCore/Serialization/SerializeContext.h>
  10. #include <ROS2Sensors/ROS2SensorsTypeIds.h>
  11. #include <Lidar/LidarCore.h>
  12. #include <ROS2Sensors/Sensor/SensorConfiguration.h>
  13. namespace ROS2Sensors
  14. {
  15. AZ_COMPONENT_IMPL(ROS2SensorsSystemComponent, "ROS2SensorsSystemComponent", ROS2SensorsSystemComponentTypeId);
  16. void ROS2SensorsSystemComponent::Reflect(AZ::ReflectContext* context)
  17. {
  18. // Reflect structs not strictly owned by any single component
  19. ROS2::LidarCore::Reflect(context);
  20. ROS2::SensorConfiguration::Reflect(context);
  21. if (auto serializeContext = azrtti_cast<AZ::SerializeContext*>(context))
  22. {
  23. serializeContext->Class<ROS2SensorsSystemComponent, AZ::Component>()->Version(0);
  24. }
  25. }
  26. void ROS2SensorsSystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
  27. {
  28. provided.push_back(AZ_CRC_CE("ROS2SensorsService"));
  29. }
  30. void ROS2SensorsSystemComponent::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
  31. {
  32. incompatible.push_back(AZ_CRC_CE("ROS2SensorsService"));
  33. }
  34. void ROS2SensorsSystemComponent::GetRequiredServices([[maybe_unused]] AZ::ComponentDescriptor::DependencyArrayType& required)
  35. {
  36. }
  37. void ROS2SensorsSystemComponent::GetDependentServices([[maybe_unused]] AZ::ComponentDescriptor::DependencyArrayType& dependent)
  38. {
  39. }
  40. } // namespace ROS2Sensors