@@ -104,30 +104,29 @@ namespace ROS2
104
104
jsonContext->Serializer <JsonROS2WheelOdometryComponentConfigSerializer>()->HandlesType <ROS2WheelOdometryComponent>();
105
105
}
106
106
107
- // ROS2WheelOdometryConfiguration::Reflect(context);
108
- // ROS2SensorComponentBase<PhysicsBasedSource, ROS2WheelOdometryConfiguration>::Reflect(context);
107
+ ROS2WheelOdometryConfiguration::Reflect (context);
108
+ ROS2SensorComponentBase<PhysicsBasedSource, ROS2WheelOdometryConfiguration>::Reflect (context);
109
109
110
110
if (auto * serialize = azrtti_cast<AZ::SerializeContext*>(context))
111
111
{
112
- serialize->Class <ROS2WheelOdometryComponent, SensorBaseType>()->Version (2 );
113
- // ->Field(
114
- // "Odometry configuration", &ROS2WheelOdometryComponent::m_odometryConfiguration);
115
-
116
- // if (auto* editContext = serialize->GetEditContext())
117
- // {
118
- // editContext->Class<ROS2WheelOdometryComponent>("ROS2 Wheel Odometry Sensor", "Odometry sensor component")
119
- // ->ClassElement(AZ::Edit::ClassElements::EditorData, "")
120
- // ->Attribute(AZ::Edit::Attributes::Category, "ROS2")
121
- // ->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC_CE("Game"))
122
- // ->Attribute(AZ::Edit::Attributes::Icon, "Editor/Icons/Components/ROS2WheelOdometrySensor.svg")
123
- // ->Attribute(AZ::Edit::Attributes::ViewportIcon, "Editor/Icons/Components/Viewport/ROS2WheelOdometrySensor.svg")
124
- // ->DataElement(
125
- // AZ::Edit::UIHandlers::Default,
126
- // &ROS2WheelOdometryComponent::m_odometryConfiguration,
127
- // "Odometry configuration",
128
- // "Odometry sensor configuration")
129
- // ->Attribute(AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly);
130
- // }
112
+ serialize->Class <ROS2WheelOdometryComponent, SensorBaseType>()->Version (2 )->Field (
113
+ " Odometry configuration" , &ROS2WheelOdometryComponent::m_odometryConfiguration);
114
+
115
+ if (auto * editContext = serialize->GetEditContext ())
116
+ {
117
+ editContext->Class <ROS2WheelOdometryComponent>(" ROS2 Wheel Odometry Sensor" , " Odometry sensor component" )
118
+ ->ClassElement (AZ::Edit::ClassElements::EditorData, " " )
119
+ ->Attribute (AZ::Edit::Attributes::Category, " ROS2" )
120
+ ->Attribute (AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC_CE (" Game" ))
121
+ ->Attribute (AZ::Edit::Attributes::Icon, " Editor/Icons/Components/ROS2WheelOdometrySensor.svg" )
122
+ ->Attribute (AZ::Edit::Attributes::ViewportIcon, " Editor/Icons/Components/Viewport/ROS2WheelOdometrySensor.svg" )
123
+ ->DataElement (
124
+ AZ::Edit::UIHandlers::Default,
125
+ &ROS2WheelOdometryComponent::m_odometryConfiguration,
126
+ " Odometry configuration" ,
127
+ " Odometry sensor configuration" )
128
+ ->Attribute (AZ::Edit::Attributes::Visibility, AZ::Edit::PropertyVisibility::ShowChildrenOnly);
129
+ }
131
130
}
132
131
}
133
132
0 commit comments