|
@@ -10,10 +10,10 @@
|
|
#include <AzCore/Math/Quaternion.h>
|
|
#include <AzCore/Math/Quaternion.h>
|
|
#include <AzCore/Math/Transform.h>
|
|
#include <AzCore/Math/Transform.h>
|
|
#include <AzCore/Math/Vector3.h>
|
|
#include <AzCore/Math/Vector3.h>
|
|
-#include <nav_msgs/msg/odometry.hpp>
|
|
|
|
-#include <rclcpp/publisher.hpp>
|
|
|
|
#include <ROS2/Sensor/Events/PhysicsBasedSource.h>
|
|
#include <ROS2/Sensor/Events/PhysicsBasedSource.h>
|
|
#include <ROS2/Sensor/ROS2SensorComponentBase.h>
|
|
#include <ROS2/Sensor/ROS2SensorComponentBase.h>
|
|
|
|
+#include <nav_msgs/msg/odometry.hpp>
|
|
|
|
+#include <rclcpp/publisher.hpp>
|
|
|
|
|
|
namespace ROS2
|
|
namespace ROS2
|
|
{
|
|
{
|
|
@@ -21,14 +21,14 @@ namespace ROS2
|
|
//! It constructs and publishes an odometry message, which contains information about vehicle velocity and position in space.
|
|
//! It constructs and publishes an odometry message, which contains information about vehicle velocity and position in space.
|
|
//! This is a ground truth "sensor", which can be helpful for development and machine learning.
|
|
//! This is a ground truth "sensor", which can be helpful for development and machine learning.
|
|
//! @see <a href="https://index.ros.org/p/nav_msgs/"> nav_msgs package. </a>
|
|
//! @see <a href="https://index.ros.org/p/nav_msgs/"> nav_msgs package. </a>
|
|
- class ROS2OdometrySensorComponent
|
|
|
|
- : public ROS2SensorComponentBase<PhysicsBasedSource>
|
|
|
|
|
|
+ class ROS2OdometrySensorComponent : public ROS2SensorComponentBase<PhysicsBasedSource>
|
|
{
|
|
{
|
|
public:
|
|
public:
|
|
AZ_COMPONENT(ROS2OdometrySensorComponent, "{61387448-63AA-4563-AF87-60C72B05B863}", SensorBaseType);
|
|
AZ_COMPONENT(ROS2OdometrySensorComponent, "{61387448-63AA-4563-AF87-60C72B05B863}", SensorBaseType);
|
|
ROS2OdometrySensorComponent();
|
|
ROS2OdometrySensorComponent();
|
|
~ROS2OdometrySensorComponent() = default;
|
|
~ROS2OdometrySensorComponent() = default;
|
|
static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
|
|
static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
|
|
|
|
+ static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
|
|
static void Reflect(AZ::ReflectContext* context);
|
|
static void Reflect(AZ::ReflectContext* context);
|
|
//////////////////////////////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// Component overrides
|
|
// Component overrides
|