diff --git a/r2r/bindings/_r2r_generated_action_helper.rs b/r2r/bindings/_r2r_generated_action_helper.rs index 8bbc4a0..5ba4b64 100644 --- a/r2r/bindings/_r2r_generated_action_helper.rs +++ b/r2r/bindings/_r2r_generated_action_helper.rs @@ -1 +1,30 @@ -impl UntypedActionSupport { pub fn new_from (typename : & str) -> Result < Self > { # [allow (non_snake_case)] fn new_untyped_service_support_tf2_msgs_action_LookupTransform () -> UntypedActionSupport { UntypedActionSupport :: new :: < tf2_msgs :: action :: LookupTransform :: Action > () } static MAP : phf :: Map < & 'static str , fn () -> UntypedActionSupport > = phf :: phf_map ! { "tf2_msgs/action/LookupTransform" => new_untyped_service_support_tf2_msgs_action_LookupTransform } ; let func = MAP . get (typename) . ok_or_else (|| Error :: InvalidMessageType { msgtype : typename . into () }) ? ; Ok (func ()) } } \ No newline at end of file +impl UntypedActionSupport { + pub fn new_from(typename: &str) -> Result { + #[allow(non_snake_case)] + fn new_untyped_service_support_test_msgs_action_Fibonacci() -> UntypedActionSupport { + UntypedActionSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_test_msgs_action_NestedMessage() -> UntypedActionSupport { + UntypedActionSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_tf2_msgs_action_LookupTransform() -> UntypedActionSupport { + UntypedActionSupport::new::() + } + static MAP: phf::Map<&'static str, fn() -> UntypedActionSupport> = phf::phf_map! { + "test_msgs/action/Fibonacci" => + new_untyped_service_support_test_msgs_action_Fibonacci, + "test_msgs/action/NestedMessage" => + new_untyped_service_support_test_msgs_action_NestedMessage, + "tf2_msgs/action/LookupTransform" => + new_untyped_service_support_tf2_msgs_action_LookupTransform + }; + let func = MAP + .get(typename) + .ok_or_else(|| Error::InvalidMessageType { + msgtype: typename.into(), + })?; + Ok(func()) + } +} diff --git a/r2r/bindings/_r2r_generated_msgs.rs b/r2r/bindings/_r2r_generated_msgs.rs index 7260ea5..3303f8c 100644 --- a/r2r/bindings/_r2r_generated_msgs.rs +++ b/r2r/bindings/_r2r_generated_msgs.rs @@ -1 +1,54 @@ -pub mod action_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/action_msgs.rs")) ; } pub mod builtin_interfaces { include ! (concat ! (env ! ("OUT_DIR") , "/builtin_interfaces.rs")) ; } pub mod diagnostic_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/diagnostic_msgs.rs")) ; } pub mod geometry_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/geometry_msgs.rs")) ; } pub mod lifecycle_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/lifecycle_msgs.rs")) ; } pub mod map_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/map_msgs.rs")) ; } pub mod nav_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/nav_msgs.rs")) ; } pub mod pendulum_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/pendulum_msgs.rs")) ; } pub mod rcl_interfaces { include ! (concat ! (env ! ("OUT_DIR") , "/rcl_interfaces.rs")) ; } pub mod rosgraph_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/rosgraph_msgs.rs")) ; } pub mod sensor_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/sensor_msgs.rs")) ; } pub mod shape_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/shape_msgs.rs")) ; } pub mod statistics_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/statistics_msgs.rs")) ; } pub mod std_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/std_msgs.rs")) ; } pub mod stereo_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/stereo_msgs.rs")) ; } pub mod tf2_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/tf2_msgs.rs")) ; } pub mod trajectory_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/trajectory_msgs.rs")) ; } pub mod unique_identifier_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/unique_identifier_msgs.rs")) ; } pub mod visualization_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/visualization_msgs.rs")) ; } \ No newline at end of file +pub mod action_msgs { + include!(concat!(env!("OUT_DIR"), "/action_msgs.rs")); +} +pub mod builtin_interfaces { + include!(concat!(env!("OUT_DIR"), "/builtin_interfaces.rs")); +} +pub mod diagnostic_msgs { + include!(concat!(env!("OUT_DIR"), "/diagnostic_msgs.rs")); +} +pub mod geometry_msgs { + include!(concat!(env!("OUT_DIR"), "/geometry_msgs.rs")); +} +pub mod lifecycle_msgs { + include!(concat!(env!("OUT_DIR"), "/lifecycle_msgs.rs")); +} +pub mod nav_msgs { + include!(concat!(env!("OUT_DIR"), "/nav_msgs.rs")); +} +pub mod rcl_interfaces { + include!(concat!(env!("OUT_DIR"), "/rcl_interfaces.rs")); +} +pub mod rosgraph_msgs { + include!(concat!(env!("OUT_DIR"), "/rosgraph_msgs.rs")); +} +pub mod sensor_msgs { + include!(concat!(env!("OUT_DIR"), "/sensor_msgs.rs")); +} +pub mod shape_msgs { + include!(concat!(env!("OUT_DIR"), "/shape_msgs.rs")); +} +pub mod statistics_msgs { + include!(concat!(env!("OUT_DIR"), "/statistics_msgs.rs")); +} +pub mod std_msgs { + include!(concat!(env!("OUT_DIR"), "/std_msgs.rs")); +} +pub mod stereo_msgs { + include!(concat!(env!("OUT_DIR"), "/stereo_msgs.rs")); +} +pub mod test_msgs { + include!(concat!(env!("OUT_DIR"), "/test_msgs.rs")); +} +pub mod tf2_msgs { + include!(concat!(env!("OUT_DIR"), "/tf2_msgs.rs")); +} +pub mod trajectory_msgs { + include!(concat!(env!("OUT_DIR"), "/trajectory_msgs.rs")); +} +pub mod unique_identifier_msgs { + include!(concat!(env!("OUT_DIR"), "/unique_identifier_msgs.rs")); +} +pub mod visualization_msgs { + include!(concat!(env!("OUT_DIR"), "/visualization_msgs.rs")); +} diff --git a/r2r/bindings/_r2r_generated_service_helper.rs b/r2r/bindings/_r2r_generated_service_helper.rs index c2db7ec..8c77c87 100644 --- a/r2r/bindings/_r2r_generated_service_helper.rs +++ b/r2r/bindings/_r2r_generated_service_helper.rs @@ -1 +1,155 @@ -impl UntypedServiceSupport { pub fn new_from (typename : & str) -> Result < Self > { # [allow (non_snake_case)] fn new_untyped_service_support_action_msgs_srv_CancelGoal () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < action_msgs :: srv :: CancelGoal :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_diagnostic_msgs_srv_AddDiagnostics () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < diagnostic_msgs :: srv :: AddDiagnostics :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_diagnostic_msgs_srv_SelfTest () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < diagnostic_msgs :: srv :: SelfTest :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_lifecycle_msgs_srv_ChangeState () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < lifecycle_msgs :: srv :: ChangeState :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_lifecycle_msgs_srv_GetAvailableStates () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < lifecycle_msgs :: srv :: GetAvailableStates :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_lifecycle_msgs_srv_GetAvailableTransitions () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < lifecycle_msgs :: srv :: GetAvailableTransitions :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_lifecycle_msgs_srv_GetState () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < lifecycle_msgs :: srv :: GetState :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_map_msgs_srv_GetMapROI () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < map_msgs :: srv :: GetMapROI :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_map_msgs_srv_GetPointMap () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < map_msgs :: srv :: GetPointMap :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_map_msgs_srv_GetPointMapROI () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < map_msgs :: srv :: GetPointMapROI :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_map_msgs_srv_ProjectedMapsInfo () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < map_msgs :: srv :: ProjectedMapsInfo :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_map_msgs_srv_SaveMap () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < map_msgs :: srv :: SaveMap :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_map_msgs_srv_SetMapProjections () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < map_msgs :: srv :: SetMapProjections :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_nav_msgs_srv_GetMap () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < nav_msgs :: srv :: GetMap :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_nav_msgs_srv_GetPlan () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < nav_msgs :: srv :: GetPlan :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_nav_msgs_srv_LoadMap () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < nav_msgs :: srv :: LoadMap :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_nav_msgs_srv_SetMap () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < nav_msgs :: srv :: SetMap :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rcl_interfaces_srv_DescribeParameters () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rcl_interfaces :: srv :: DescribeParameters :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rcl_interfaces_srv_GetParameterTypes () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rcl_interfaces :: srv :: GetParameterTypes :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rcl_interfaces_srv_GetParameters () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rcl_interfaces :: srv :: GetParameters :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rcl_interfaces_srv_ListParameters () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rcl_interfaces :: srv :: ListParameters :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rcl_interfaces_srv_SetParameters () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rcl_interfaces :: srv :: SetParameters :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rcl_interfaces_srv_SetParametersAtomically () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rcl_interfaces :: srv :: SetParametersAtomically :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_sensor_msgs_srv_SetCameraInfo () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < sensor_msgs :: srv :: SetCameraInfo :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_tf2_msgs_srv_FrameGraph () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < tf2_msgs :: srv :: FrameGraph :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_visualization_msgs_srv_GetInteractiveMarkers () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < visualization_msgs :: srv :: GetInteractiveMarkers :: Service > () } static MAP : phf :: Map < & 'static str , fn () -> UntypedServiceSupport > = phf :: phf_map ! { "action_msgs/srv/CancelGoal" => new_untyped_service_support_action_msgs_srv_CancelGoal , "diagnostic_msgs/srv/AddDiagnostics" => new_untyped_service_support_diagnostic_msgs_srv_AddDiagnostics , "diagnostic_msgs/srv/SelfTest" => new_untyped_service_support_diagnostic_msgs_srv_SelfTest , "lifecycle_msgs/srv/ChangeState" => new_untyped_service_support_lifecycle_msgs_srv_ChangeState , "lifecycle_msgs/srv/GetAvailableStates" => new_untyped_service_support_lifecycle_msgs_srv_GetAvailableStates , "lifecycle_msgs/srv/GetAvailableTransitions" => new_untyped_service_support_lifecycle_msgs_srv_GetAvailableTransitions , "lifecycle_msgs/srv/GetState" => new_untyped_service_support_lifecycle_msgs_srv_GetState , "map_msgs/srv/GetMapROI" => new_untyped_service_support_map_msgs_srv_GetMapROI , "map_msgs/srv/GetPointMap" => new_untyped_service_support_map_msgs_srv_GetPointMap , "map_msgs/srv/GetPointMapROI" => new_untyped_service_support_map_msgs_srv_GetPointMapROI , "map_msgs/srv/ProjectedMapsInfo" => new_untyped_service_support_map_msgs_srv_ProjectedMapsInfo , "map_msgs/srv/SaveMap" => new_untyped_service_support_map_msgs_srv_SaveMap , "map_msgs/srv/SetMapProjections" => new_untyped_service_support_map_msgs_srv_SetMapProjections , "nav_msgs/srv/GetMap" => new_untyped_service_support_nav_msgs_srv_GetMap , "nav_msgs/srv/GetPlan" => new_untyped_service_support_nav_msgs_srv_GetPlan , "nav_msgs/srv/LoadMap" => new_untyped_service_support_nav_msgs_srv_LoadMap , "nav_msgs/srv/SetMap" => new_untyped_service_support_nav_msgs_srv_SetMap , "rcl_interfaces/srv/DescribeParameters" => new_untyped_service_support_rcl_interfaces_srv_DescribeParameters , "rcl_interfaces/srv/GetParameterTypes" => new_untyped_service_support_rcl_interfaces_srv_GetParameterTypes , "rcl_interfaces/srv/GetParameters" => new_untyped_service_support_rcl_interfaces_srv_GetParameters , "rcl_interfaces/srv/ListParameters" => new_untyped_service_support_rcl_interfaces_srv_ListParameters , "rcl_interfaces/srv/SetParameters" => new_untyped_service_support_rcl_interfaces_srv_SetParameters , "rcl_interfaces/srv/SetParametersAtomically" => new_untyped_service_support_rcl_interfaces_srv_SetParametersAtomically , "sensor_msgs/srv/SetCameraInfo" => new_untyped_service_support_sensor_msgs_srv_SetCameraInfo , "tf2_msgs/srv/FrameGraph" => new_untyped_service_support_tf2_msgs_srv_FrameGraph , "visualization_msgs/srv/GetInteractiveMarkers" => new_untyped_service_support_visualization_msgs_srv_GetInteractiveMarkers } ; let func = MAP . get (typename) . ok_or_else (|| Error :: InvalidMessageType { msgtype : typename . into () }) ? ; Ok (func ()) } } \ No newline at end of file +impl UntypedServiceSupport { + pub fn new_from(typename: &str) -> Result { + #[allow(non_snake_case)] + fn new_untyped_service_support_action_msgs_srv_CancelGoal() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_diagnostic_msgs_srv_AddDiagnostics() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_diagnostic_msgs_srv_SelfTest() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_lifecycle_msgs_srv_ChangeState() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_lifecycle_msgs_srv_GetAvailableStates() -> UntypedServiceSupport { + UntypedServiceSupport::new::< + lifecycle_msgs::srv::GetAvailableStates::Service, + >() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_lifecycle_msgs_srv_GetAvailableTransitions() -> UntypedServiceSupport { + UntypedServiceSupport::new::< + lifecycle_msgs::srv::GetAvailableTransitions::Service, + >() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_lifecycle_msgs_srv_GetState() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_nav_msgs_srv_GetMap() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_nav_msgs_srv_GetPlan() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_nav_msgs_srv_LoadMap() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_nav_msgs_srv_SetMap() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_rcl_interfaces_srv_DescribeParameters() -> UntypedServiceSupport { + UntypedServiceSupport::new::< + rcl_interfaces::srv::DescribeParameters::Service, + >() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_rcl_interfaces_srv_GetParameterTypes() -> UntypedServiceSupport { + UntypedServiceSupport::new::< + rcl_interfaces::srv::GetParameterTypes::Service, + >() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_rcl_interfaces_srv_GetParameters() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_rcl_interfaces_srv_ListParameters() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_rcl_interfaces_srv_SetParameters() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_rcl_interfaces_srv_SetParametersAtomically() -> UntypedServiceSupport { + UntypedServiceSupport::new::< + rcl_interfaces::srv::SetParametersAtomically::Service, + >() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_sensor_msgs_srv_SetCameraInfo() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_test_msgs_srv_Arrays() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_test_msgs_srv_BasicTypes() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_test_msgs_srv_Empty() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_tf2_msgs_srv_FrameGraph() -> UntypedServiceSupport { + UntypedServiceSupport::new::() + } + #[allow(non_snake_case)] + fn new_untyped_service_support_visualization_msgs_srv_GetInteractiveMarkers() -> UntypedServiceSupport { + UntypedServiceSupport::new::< + visualization_msgs::srv::GetInteractiveMarkers::Service, + >() + } + static MAP: phf::Map<&'static str, fn() -> UntypedServiceSupport> = phf::phf_map! { + "action_msgs/srv/CancelGoal" => + new_untyped_service_support_action_msgs_srv_CancelGoal, + "diagnostic_msgs/srv/AddDiagnostics" => + new_untyped_service_support_diagnostic_msgs_srv_AddDiagnostics, + "diagnostic_msgs/srv/SelfTest" => + new_untyped_service_support_diagnostic_msgs_srv_SelfTest, + "lifecycle_msgs/srv/ChangeState" => + new_untyped_service_support_lifecycle_msgs_srv_ChangeState, + "lifecycle_msgs/srv/GetAvailableStates" => + new_untyped_service_support_lifecycle_msgs_srv_GetAvailableStates, + "lifecycle_msgs/srv/GetAvailableTransitions" => + new_untyped_service_support_lifecycle_msgs_srv_GetAvailableTransitions, + "lifecycle_msgs/srv/GetState" => + new_untyped_service_support_lifecycle_msgs_srv_GetState, + "nav_msgs/srv/GetMap" => new_untyped_service_support_nav_msgs_srv_GetMap, + "nav_msgs/srv/GetPlan" => new_untyped_service_support_nav_msgs_srv_GetPlan, + "nav_msgs/srv/LoadMap" => new_untyped_service_support_nav_msgs_srv_LoadMap, + "nav_msgs/srv/SetMap" => new_untyped_service_support_nav_msgs_srv_SetMap, + "rcl_interfaces/srv/DescribeParameters" => + new_untyped_service_support_rcl_interfaces_srv_DescribeParameters, + "rcl_interfaces/srv/GetParameterTypes" => + new_untyped_service_support_rcl_interfaces_srv_GetParameterTypes, + "rcl_interfaces/srv/GetParameters" => + new_untyped_service_support_rcl_interfaces_srv_GetParameters, + "rcl_interfaces/srv/ListParameters" => + new_untyped_service_support_rcl_interfaces_srv_ListParameters, + "rcl_interfaces/srv/SetParameters" => + new_untyped_service_support_rcl_interfaces_srv_SetParameters, + "rcl_interfaces/srv/SetParametersAtomically" => + new_untyped_service_support_rcl_interfaces_srv_SetParametersAtomically, + "sensor_msgs/srv/SetCameraInfo" => + new_untyped_service_support_sensor_msgs_srv_SetCameraInfo, + "test_msgs/srv/Arrays" => new_untyped_service_support_test_msgs_srv_Arrays, + "test_msgs/srv/BasicTypes" => + new_untyped_service_support_test_msgs_srv_BasicTypes, "test_msgs/srv/Empty" + => new_untyped_service_support_test_msgs_srv_Empty, "tf2_msgs/srv/FrameGraph" + => new_untyped_service_support_tf2_msgs_srv_FrameGraph, + "visualization_msgs/srv/GetInteractiveMarkers" => + new_untyped_service_support_visualization_msgs_srv_GetInteractiveMarkers + }; + let func = MAP + .get(typename) + .ok_or_else(|| Error::InvalidMessageType { + msgtype: typename.into(), + })?; + Ok(func()) + } +} diff --git a/r2r/bindings/_r2r_generated_untyped_helper.rs b/r2r/bindings/_r2r_generated_untyped_helper.rs index 304d0d1..1c6058e 100644 --- a/r2r/bindings/_r2r_generated_untyped_helper.rs +++ b/r2r/bindings/_r2r_generated_untyped_helper.rs @@ -1 +1,943 @@ -impl WrappedNativeMsgUntyped { pub fn new_from (typename : & str) -> Result < Self > { # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_action_msgs_msg_GoalInfo () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < action_msgs :: msg :: GoalInfo > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_action_msgs_msg_GoalStatus () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < action_msgs :: msg :: GoalStatus > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_action_msgs_msg_GoalStatusArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < action_msgs :: msg :: GoalStatusArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_builtin_interfaces_msg_Duration () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < builtin_interfaces :: msg :: Duration > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_builtin_interfaces_msg_Time () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < builtin_interfaces :: msg :: Time > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_diagnostic_msgs_msg_DiagnosticArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < diagnostic_msgs :: msg :: DiagnosticArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_diagnostic_msgs_msg_DiagnosticStatus () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < diagnostic_msgs :: msg :: DiagnosticStatus > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_diagnostic_msgs_msg_KeyValue () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < diagnostic_msgs :: msg :: KeyValue > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Accel () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: Accel > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_AccelStamped () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: AccelStamped > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_AccelWithCovariance () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: AccelWithCovariance > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_AccelWithCovarianceStamped () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: AccelWithCovarianceStamped > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Inertia () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: Inertia > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_InertiaStamped () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: InertiaStamped > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Point () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: Point > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Point32 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: Point32 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_PointStamped () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: PointStamped > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Polygon () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: Polygon > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_PolygonStamped () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: PolygonStamped > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Pose () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: Pose > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Pose2D () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: Pose2D > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: PoseArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseStamped () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: PoseStamped > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseWithCovariance () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: PoseWithCovariance > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseWithCovarianceStamped () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: PoseWithCovarianceStamped > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Quaternion () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: Quaternion > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_QuaternionStamped () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: QuaternionStamped > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Transform () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: Transform > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_TransformStamped () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: TransformStamped > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Twist () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: Twist > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_TwistStamped () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: TwistStamped > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_TwistWithCovariance () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: TwistWithCovariance > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_TwistWithCovarianceStamped () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: TwistWithCovarianceStamped > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Vector3 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: Vector3 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Vector3Stamped () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: Vector3Stamped > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Wrench () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: Wrench > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_geometry_msgs_msg_WrenchStamped () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < geometry_msgs :: msg :: WrenchStamped > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_lifecycle_msgs_msg_State () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < lifecycle_msgs :: msg :: State > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_lifecycle_msgs_msg_Transition () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < lifecycle_msgs :: msg :: Transition > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_lifecycle_msgs_msg_TransitionDescription () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < lifecycle_msgs :: msg :: TransitionDescription > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_lifecycle_msgs_msg_TransitionEvent () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < lifecycle_msgs :: msg :: TransitionEvent > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_map_msgs_msg_OccupancyGridUpdate () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < map_msgs :: msg :: OccupancyGridUpdate > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_map_msgs_msg_PointCloud2Update () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < map_msgs :: msg :: PointCloud2Update > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_map_msgs_msg_ProjectedMap () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < map_msgs :: msg :: ProjectedMap > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_map_msgs_msg_ProjectedMapInfo () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < map_msgs :: msg :: ProjectedMapInfo > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_nav_msgs_msg_GridCells () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < nav_msgs :: msg :: GridCells > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_nav_msgs_msg_MapMetaData () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < nav_msgs :: msg :: MapMetaData > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_nav_msgs_msg_OccupancyGrid () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < nav_msgs :: msg :: OccupancyGrid > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_nav_msgs_msg_Odometry () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < nav_msgs :: msg :: Odometry > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_nav_msgs_msg_Path () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < nav_msgs :: msg :: Path > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_pendulum_msgs_msg_JointCommand () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < pendulum_msgs :: msg :: JointCommand > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_pendulum_msgs_msg_JointState () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < pendulum_msgs :: msg :: JointState > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_pendulum_msgs_msg_RttestResults () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < pendulum_msgs :: msg :: RttestResults > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_FloatingPointRange () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rcl_interfaces :: msg :: FloatingPointRange > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_IntegerRange () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rcl_interfaces :: msg :: IntegerRange > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_ListParametersResult () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rcl_interfaces :: msg :: ListParametersResult > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_Log () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rcl_interfaces :: msg :: Log > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_Parameter () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rcl_interfaces :: msg :: Parameter > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterDescriptor () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rcl_interfaces :: msg :: ParameterDescriptor > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterEvent () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rcl_interfaces :: msg :: ParameterEvent > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterEventDescriptors () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rcl_interfaces :: msg :: ParameterEventDescriptors > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterType () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rcl_interfaces :: msg :: ParameterType > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterValue () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rcl_interfaces :: msg :: ParameterValue > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_SetParametersResult () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rcl_interfaces :: msg :: SetParametersResult > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rosgraph_msgs_msg_Clock () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rosgraph_msgs :: msg :: Clock > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_BatteryState () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: BatteryState > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_CameraInfo () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: CameraInfo > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_ChannelFloat32 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: ChannelFloat32 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_CompressedImage () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: CompressedImage > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_FluidPressure () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: FluidPressure > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_Illuminance () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: Illuminance > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_Image () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: Image > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_Imu () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: Imu > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_JointState () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: JointState > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_Joy () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: Joy > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_JoyFeedback () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: JoyFeedback > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_JoyFeedbackArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: JoyFeedbackArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_LaserEcho () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: LaserEcho > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_LaserScan () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: LaserScan > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_MagneticField () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: MagneticField > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_MultiDOFJointState () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: MultiDOFJointState > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_MultiEchoLaserScan () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: MultiEchoLaserScan > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_NavSatFix () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: NavSatFix > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_NavSatStatus () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: NavSatStatus > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_PointCloud () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: PointCloud > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_PointCloud2 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: PointCloud2 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_PointField () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: PointField > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_Range () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: Range > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_RegionOfInterest () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: RegionOfInterest > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_RelativeHumidity () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: RelativeHumidity > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_Temperature () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: Temperature > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_sensor_msgs_msg_TimeReference () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < sensor_msgs :: msg :: TimeReference > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_shape_msgs_msg_Mesh () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < shape_msgs :: msg :: Mesh > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_shape_msgs_msg_MeshTriangle () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < shape_msgs :: msg :: MeshTriangle > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_shape_msgs_msg_Plane () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < shape_msgs :: msg :: Plane > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_shape_msgs_msg_SolidPrimitive () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < shape_msgs :: msg :: SolidPrimitive > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_statistics_msgs_msg_MetricsMessage () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < statistics_msgs :: msg :: MetricsMessage > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_statistics_msgs_msg_StatisticDataPoint () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < statistics_msgs :: msg :: StatisticDataPoint > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_statistics_msgs_msg_StatisticDataType () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < statistics_msgs :: msg :: StatisticDataType > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Bool () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Bool > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Byte () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Byte > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_ByteMultiArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: ByteMultiArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Char () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Char > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_ColorRGBA () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: ColorRGBA > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Empty () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Empty > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Float32 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Float32 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Float32MultiArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Float32MultiArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Float64 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Float64 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Float64MultiArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Float64MultiArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Header () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Header > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Int16 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Int16 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Int16MultiArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Int16MultiArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Int32 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Int32 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Int32MultiArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Int32MultiArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Int64 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Int64 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Int64MultiArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Int64MultiArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Int8 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Int8 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_Int8MultiArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: Int8MultiArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_MultiArrayDimension () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: MultiArrayDimension > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_MultiArrayLayout () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: MultiArrayLayout > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_String () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: String > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt16 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: UInt16 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt16MultiArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: UInt16MultiArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt32 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: UInt32 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt32MultiArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: UInt32MultiArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt64 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: UInt64 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt64MultiArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: UInt64MultiArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt8 () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: UInt8 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt8MultiArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < std_msgs :: msg :: UInt8MultiArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_stereo_msgs_msg_DisparityImage () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < stereo_msgs :: msg :: DisparityImage > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_tf2_msgs_msg_TF2Error () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < tf2_msgs :: msg :: TF2Error > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_tf2_msgs_msg_TFMessage () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < tf2_msgs :: msg :: TFMessage > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_trajectory_msgs_msg_JointTrajectory () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < trajectory_msgs :: msg :: JointTrajectory > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_trajectory_msgs_msg_JointTrajectoryPoint () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < trajectory_msgs :: msg :: JointTrajectoryPoint > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_trajectory_msgs_msg_MultiDOFJointTrajectory () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < trajectory_msgs :: msg :: MultiDOFJointTrajectory > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_trajectory_msgs_msg_MultiDOFJointTrajectoryPoint () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < trajectory_msgs :: msg :: MultiDOFJointTrajectoryPoint > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_unique_identifier_msgs_msg_UUID () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < unique_identifier_msgs :: msg :: UUID > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_visualization_msgs_msg_ImageMarker () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < visualization_msgs :: msg :: ImageMarker > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarker () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < visualization_msgs :: msg :: InteractiveMarker > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerControl () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < visualization_msgs :: msg :: InteractiveMarkerControl > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerFeedback () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < visualization_msgs :: msg :: InteractiveMarkerFeedback > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerInit () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < visualization_msgs :: msg :: InteractiveMarkerInit > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerPose () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < visualization_msgs :: msg :: InteractiveMarkerPose > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerUpdate () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < visualization_msgs :: msg :: InteractiveMarkerUpdate > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_visualization_msgs_msg_Marker () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < visualization_msgs :: msg :: Marker > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_visualization_msgs_msg_MarkerArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < visualization_msgs :: msg :: MarkerArray > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_visualization_msgs_msg_MenuEntry () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < visualization_msgs :: msg :: MenuEntry > () } static MAP : phf :: Map < & 'static str , fn () -> WrappedNativeMsgUntyped > = phf :: phf_map ! { "action_msgs/msg/GoalInfo" => new_wrapped_native_msg_untyped_action_msgs_msg_GoalInfo , "action_msgs/msg/GoalStatus" => new_wrapped_native_msg_untyped_action_msgs_msg_GoalStatus , "action_msgs/msg/GoalStatusArray" => new_wrapped_native_msg_untyped_action_msgs_msg_GoalStatusArray , "builtin_interfaces/msg/Duration" => new_wrapped_native_msg_untyped_builtin_interfaces_msg_Duration , "builtin_interfaces/msg/Time" => new_wrapped_native_msg_untyped_builtin_interfaces_msg_Time , "diagnostic_msgs/msg/DiagnosticArray" => new_wrapped_native_msg_untyped_diagnostic_msgs_msg_DiagnosticArray , "diagnostic_msgs/msg/DiagnosticStatus" => new_wrapped_native_msg_untyped_diagnostic_msgs_msg_DiagnosticStatus , "diagnostic_msgs/msg/KeyValue" => new_wrapped_native_msg_untyped_diagnostic_msgs_msg_KeyValue , "geometry_msgs/msg/Accel" => new_wrapped_native_msg_untyped_geometry_msgs_msg_Accel , "geometry_msgs/msg/AccelStamped" => new_wrapped_native_msg_untyped_geometry_msgs_msg_AccelStamped , "geometry_msgs/msg/AccelWithCovariance" => new_wrapped_native_msg_untyped_geometry_msgs_msg_AccelWithCovariance , "geometry_msgs/msg/AccelWithCovarianceStamped" => new_wrapped_native_msg_untyped_geometry_msgs_msg_AccelWithCovarianceStamped , "geometry_msgs/msg/Inertia" => new_wrapped_native_msg_untyped_geometry_msgs_msg_Inertia , "geometry_msgs/msg/InertiaStamped" => new_wrapped_native_msg_untyped_geometry_msgs_msg_InertiaStamped , "geometry_msgs/msg/Point" => new_wrapped_native_msg_untyped_geometry_msgs_msg_Point , "geometry_msgs/msg/Point32" => new_wrapped_native_msg_untyped_geometry_msgs_msg_Point32 , "geometry_msgs/msg/PointStamped" => new_wrapped_native_msg_untyped_geometry_msgs_msg_PointStamped , "geometry_msgs/msg/Polygon" => new_wrapped_native_msg_untyped_geometry_msgs_msg_Polygon , "geometry_msgs/msg/PolygonStamped" => new_wrapped_native_msg_untyped_geometry_msgs_msg_PolygonStamped , "geometry_msgs/msg/Pose" => new_wrapped_native_msg_untyped_geometry_msgs_msg_Pose , "geometry_msgs/msg/Pose2D" => new_wrapped_native_msg_untyped_geometry_msgs_msg_Pose2D , "geometry_msgs/msg/PoseArray" => new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseArray , "geometry_msgs/msg/PoseStamped" => new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseStamped , "geometry_msgs/msg/PoseWithCovariance" => new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseWithCovariance , "geometry_msgs/msg/PoseWithCovarianceStamped" => new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseWithCovarianceStamped , "geometry_msgs/msg/Quaternion" => new_wrapped_native_msg_untyped_geometry_msgs_msg_Quaternion , "geometry_msgs/msg/QuaternionStamped" => new_wrapped_native_msg_untyped_geometry_msgs_msg_QuaternionStamped , "geometry_msgs/msg/Transform" => new_wrapped_native_msg_untyped_geometry_msgs_msg_Transform , "geometry_msgs/msg/TransformStamped" => new_wrapped_native_msg_untyped_geometry_msgs_msg_TransformStamped , "geometry_msgs/msg/Twist" => new_wrapped_native_msg_untyped_geometry_msgs_msg_Twist , "geometry_msgs/msg/TwistStamped" => new_wrapped_native_msg_untyped_geometry_msgs_msg_TwistStamped , "geometry_msgs/msg/TwistWithCovariance" => new_wrapped_native_msg_untyped_geometry_msgs_msg_TwistWithCovariance , "geometry_msgs/msg/TwistWithCovarianceStamped" => new_wrapped_native_msg_untyped_geometry_msgs_msg_TwistWithCovarianceStamped , "geometry_msgs/msg/Vector3" => new_wrapped_native_msg_untyped_geometry_msgs_msg_Vector3 , "geometry_msgs/msg/Vector3Stamped" => new_wrapped_native_msg_untyped_geometry_msgs_msg_Vector3Stamped , "geometry_msgs/msg/Wrench" => new_wrapped_native_msg_untyped_geometry_msgs_msg_Wrench , "geometry_msgs/msg/WrenchStamped" => new_wrapped_native_msg_untyped_geometry_msgs_msg_WrenchStamped , "lifecycle_msgs/msg/State" => new_wrapped_native_msg_untyped_lifecycle_msgs_msg_State , "lifecycle_msgs/msg/Transition" => new_wrapped_native_msg_untyped_lifecycle_msgs_msg_Transition , "lifecycle_msgs/msg/TransitionDescription" => new_wrapped_native_msg_untyped_lifecycle_msgs_msg_TransitionDescription , "lifecycle_msgs/msg/TransitionEvent" => new_wrapped_native_msg_untyped_lifecycle_msgs_msg_TransitionEvent , "map_msgs/msg/OccupancyGridUpdate" => new_wrapped_native_msg_untyped_map_msgs_msg_OccupancyGridUpdate , "map_msgs/msg/PointCloud2Update" => new_wrapped_native_msg_untyped_map_msgs_msg_PointCloud2Update , "map_msgs/msg/ProjectedMap" => new_wrapped_native_msg_untyped_map_msgs_msg_ProjectedMap , "map_msgs/msg/ProjectedMapInfo" => new_wrapped_native_msg_untyped_map_msgs_msg_ProjectedMapInfo , "nav_msgs/msg/GridCells" => new_wrapped_native_msg_untyped_nav_msgs_msg_GridCells , "nav_msgs/msg/MapMetaData" => new_wrapped_native_msg_untyped_nav_msgs_msg_MapMetaData , "nav_msgs/msg/OccupancyGrid" => new_wrapped_native_msg_untyped_nav_msgs_msg_OccupancyGrid , "nav_msgs/msg/Odometry" => new_wrapped_native_msg_untyped_nav_msgs_msg_Odometry , "nav_msgs/msg/Path" => new_wrapped_native_msg_untyped_nav_msgs_msg_Path , "pendulum_msgs/msg/JointCommand" => new_wrapped_native_msg_untyped_pendulum_msgs_msg_JointCommand , "pendulum_msgs/msg/JointState" => new_wrapped_native_msg_untyped_pendulum_msgs_msg_JointState , "pendulum_msgs/msg/RttestResults" => new_wrapped_native_msg_untyped_pendulum_msgs_msg_RttestResults , "rcl_interfaces/msg/FloatingPointRange" => new_wrapped_native_msg_untyped_rcl_interfaces_msg_FloatingPointRange , "rcl_interfaces/msg/IntegerRange" => new_wrapped_native_msg_untyped_rcl_interfaces_msg_IntegerRange , "rcl_interfaces/msg/ListParametersResult" => new_wrapped_native_msg_untyped_rcl_interfaces_msg_ListParametersResult , "rcl_interfaces/msg/Log" => new_wrapped_native_msg_untyped_rcl_interfaces_msg_Log , "rcl_interfaces/msg/Parameter" => new_wrapped_native_msg_untyped_rcl_interfaces_msg_Parameter , "rcl_interfaces/msg/ParameterDescriptor" => new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterDescriptor , "rcl_interfaces/msg/ParameterEvent" => new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterEvent , "rcl_interfaces/msg/ParameterEventDescriptors" => new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterEventDescriptors , "rcl_interfaces/msg/ParameterType" => new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterType , "rcl_interfaces/msg/ParameterValue" => new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterValue , "rcl_interfaces/msg/SetParametersResult" => new_wrapped_native_msg_untyped_rcl_interfaces_msg_SetParametersResult , "rosgraph_msgs/msg/Clock" => new_wrapped_native_msg_untyped_rosgraph_msgs_msg_Clock , "sensor_msgs/msg/BatteryState" => new_wrapped_native_msg_untyped_sensor_msgs_msg_BatteryState , "sensor_msgs/msg/CameraInfo" => new_wrapped_native_msg_untyped_sensor_msgs_msg_CameraInfo , "sensor_msgs/msg/ChannelFloat32" => new_wrapped_native_msg_untyped_sensor_msgs_msg_ChannelFloat32 , "sensor_msgs/msg/CompressedImage" => new_wrapped_native_msg_untyped_sensor_msgs_msg_CompressedImage , "sensor_msgs/msg/FluidPressure" => new_wrapped_native_msg_untyped_sensor_msgs_msg_FluidPressure , "sensor_msgs/msg/Illuminance" => new_wrapped_native_msg_untyped_sensor_msgs_msg_Illuminance , "sensor_msgs/msg/Image" => new_wrapped_native_msg_untyped_sensor_msgs_msg_Image , "sensor_msgs/msg/Imu" => new_wrapped_native_msg_untyped_sensor_msgs_msg_Imu , "sensor_msgs/msg/JointState" => new_wrapped_native_msg_untyped_sensor_msgs_msg_JointState , "sensor_msgs/msg/Joy" => new_wrapped_native_msg_untyped_sensor_msgs_msg_Joy , "sensor_msgs/msg/JoyFeedback" => new_wrapped_native_msg_untyped_sensor_msgs_msg_JoyFeedback , "sensor_msgs/msg/JoyFeedbackArray" => new_wrapped_native_msg_untyped_sensor_msgs_msg_JoyFeedbackArray , "sensor_msgs/msg/LaserEcho" => new_wrapped_native_msg_untyped_sensor_msgs_msg_LaserEcho , "sensor_msgs/msg/LaserScan" => new_wrapped_native_msg_untyped_sensor_msgs_msg_LaserScan , "sensor_msgs/msg/MagneticField" => new_wrapped_native_msg_untyped_sensor_msgs_msg_MagneticField , "sensor_msgs/msg/MultiDOFJointState" => new_wrapped_native_msg_untyped_sensor_msgs_msg_MultiDOFJointState , "sensor_msgs/msg/MultiEchoLaserScan" => new_wrapped_native_msg_untyped_sensor_msgs_msg_MultiEchoLaserScan , "sensor_msgs/msg/NavSatFix" => new_wrapped_native_msg_untyped_sensor_msgs_msg_NavSatFix , "sensor_msgs/msg/NavSatStatus" => new_wrapped_native_msg_untyped_sensor_msgs_msg_NavSatStatus , "sensor_msgs/msg/PointCloud" => new_wrapped_native_msg_untyped_sensor_msgs_msg_PointCloud , "sensor_msgs/msg/PointCloud2" => new_wrapped_native_msg_untyped_sensor_msgs_msg_PointCloud2 , "sensor_msgs/msg/PointField" => new_wrapped_native_msg_untyped_sensor_msgs_msg_PointField , "sensor_msgs/msg/Range" => new_wrapped_native_msg_untyped_sensor_msgs_msg_Range , "sensor_msgs/msg/RegionOfInterest" => new_wrapped_native_msg_untyped_sensor_msgs_msg_RegionOfInterest , "sensor_msgs/msg/RelativeHumidity" => new_wrapped_native_msg_untyped_sensor_msgs_msg_RelativeHumidity , "sensor_msgs/msg/Temperature" => new_wrapped_native_msg_untyped_sensor_msgs_msg_Temperature , "sensor_msgs/msg/TimeReference" => new_wrapped_native_msg_untyped_sensor_msgs_msg_TimeReference , "shape_msgs/msg/Mesh" => new_wrapped_native_msg_untyped_shape_msgs_msg_Mesh , "shape_msgs/msg/MeshTriangle" => new_wrapped_native_msg_untyped_shape_msgs_msg_MeshTriangle , "shape_msgs/msg/Plane" => new_wrapped_native_msg_untyped_shape_msgs_msg_Plane , "shape_msgs/msg/SolidPrimitive" => new_wrapped_native_msg_untyped_shape_msgs_msg_SolidPrimitive , "statistics_msgs/msg/MetricsMessage" => new_wrapped_native_msg_untyped_statistics_msgs_msg_MetricsMessage , "statistics_msgs/msg/StatisticDataPoint" => new_wrapped_native_msg_untyped_statistics_msgs_msg_StatisticDataPoint , "statistics_msgs/msg/StatisticDataType" => new_wrapped_native_msg_untyped_statistics_msgs_msg_StatisticDataType , "std_msgs/msg/Bool" => new_wrapped_native_msg_untyped_std_msgs_msg_Bool , "std_msgs/msg/Byte" => new_wrapped_native_msg_untyped_std_msgs_msg_Byte , "std_msgs/msg/ByteMultiArray" => new_wrapped_native_msg_untyped_std_msgs_msg_ByteMultiArray , "std_msgs/msg/Char" => new_wrapped_native_msg_untyped_std_msgs_msg_Char , "std_msgs/msg/ColorRGBA" => new_wrapped_native_msg_untyped_std_msgs_msg_ColorRGBA , "std_msgs/msg/Empty" => new_wrapped_native_msg_untyped_std_msgs_msg_Empty , "std_msgs/msg/Float32" => new_wrapped_native_msg_untyped_std_msgs_msg_Float32 , "std_msgs/msg/Float32MultiArray" => new_wrapped_native_msg_untyped_std_msgs_msg_Float32MultiArray , "std_msgs/msg/Float64" => new_wrapped_native_msg_untyped_std_msgs_msg_Float64 , "std_msgs/msg/Float64MultiArray" => new_wrapped_native_msg_untyped_std_msgs_msg_Float64MultiArray , "std_msgs/msg/Header" => new_wrapped_native_msg_untyped_std_msgs_msg_Header , "std_msgs/msg/Int16" => new_wrapped_native_msg_untyped_std_msgs_msg_Int16 , "std_msgs/msg/Int16MultiArray" => new_wrapped_native_msg_untyped_std_msgs_msg_Int16MultiArray , "std_msgs/msg/Int32" => new_wrapped_native_msg_untyped_std_msgs_msg_Int32 , "std_msgs/msg/Int32MultiArray" => new_wrapped_native_msg_untyped_std_msgs_msg_Int32MultiArray , "std_msgs/msg/Int64" => new_wrapped_native_msg_untyped_std_msgs_msg_Int64 , "std_msgs/msg/Int64MultiArray" => new_wrapped_native_msg_untyped_std_msgs_msg_Int64MultiArray , "std_msgs/msg/Int8" => new_wrapped_native_msg_untyped_std_msgs_msg_Int8 , "std_msgs/msg/Int8MultiArray" => new_wrapped_native_msg_untyped_std_msgs_msg_Int8MultiArray , "std_msgs/msg/MultiArrayDimension" => new_wrapped_native_msg_untyped_std_msgs_msg_MultiArrayDimension , "std_msgs/msg/MultiArrayLayout" => new_wrapped_native_msg_untyped_std_msgs_msg_MultiArrayLayout , "std_msgs/msg/String" => new_wrapped_native_msg_untyped_std_msgs_msg_String , "std_msgs/msg/UInt16" => new_wrapped_native_msg_untyped_std_msgs_msg_UInt16 , "std_msgs/msg/UInt16MultiArray" => new_wrapped_native_msg_untyped_std_msgs_msg_UInt16MultiArray , "std_msgs/msg/UInt32" => new_wrapped_native_msg_untyped_std_msgs_msg_UInt32 , "std_msgs/msg/UInt32MultiArray" => new_wrapped_native_msg_untyped_std_msgs_msg_UInt32MultiArray , "std_msgs/msg/UInt64" => new_wrapped_native_msg_untyped_std_msgs_msg_UInt64 , "std_msgs/msg/UInt64MultiArray" => new_wrapped_native_msg_untyped_std_msgs_msg_UInt64MultiArray , "std_msgs/msg/UInt8" => new_wrapped_native_msg_untyped_std_msgs_msg_UInt8 , "std_msgs/msg/UInt8MultiArray" => new_wrapped_native_msg_untyped_std_msgs_msg_UInt8MultiArray , "stereo_msgs/msg/DisparityImage" => new_wrapped_native_msg_untyped_stereo_msgs_msg_DisparityImage , "tf2_msgs/msg/TF2Error" => new_wrapped_native_msg_untyped_tf2_msgs_msg_TF2Error , "tf2_msgs/msg/TFMessage" => new_wrapped_native_msg_untyped_tf2_msgs_msg_TFMessage , "trajectory_msgs/msg/JointTrajectory" => new_wrapped_native_msg_untyped_trajectory_msgs_msg_JointTrajectory , "trajectory_msgs/msg/JointTrajectoryPoint" => new_wrapped_native_msg_untyped_trajectory_msgs_msg_JointTrajectoryPoint , "trajectory_msgs/msg/MultiDOFJointTrajectory" => new_wrapped_native_msg_untyped_trajectory_msgs_msg_MultiDOFJointTrajectory , "trajectory_msgs/msg/MultiDOFJointTrajectoryPoint" => new_wrapped_native_msg_untyped_trajectory_msgs_msg_MultiDOFJointTrajectoryPoint , "unique_identifier_msgs/msg/UUID" => new_wrapped_native_msg_untyped_unique_identifier_msgs_msg_UUID , "visualization_msgs/msg/ImageMarker" => new_wrapped_native_msg_untyped_visualization_msgs_msg_ImageMarker , "visualization_msgs/msg/InteractiveMarker" => new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarker , "visualization_msgs/msg/InteractiveMarkerControl" => new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerControl , "visualization_msgs/msg/InteractiveMarkerFeedback" => new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerFeedback , "visualization_msgs/msg/InteractiveMarkerInit" => new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerInit , "visualization_msgs/msg/InteractiveMarkerPose" => new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerPose , "visualization_msgs/msg/InteractiveMarkerUpdate" => new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerUpdate , "visualization_msgs/msg/Marker" => new_wrapped_native_msg_untyped_visualization_msgs_msg_Marker , "visualization_msgs/msg/MarkerArray" => new_wrapped_native_msg_untyped_visualization_msgs_msg_MarkerArray , "visualization_msgs/msg/MenuEntry" => new_wrapped_native_msg_untyped_visualization_msgs_msg_MenuEntry } ; let func = MAP . get (typename) . ok_or_else (|| Error :: InvalidMessageType { msgtype : typename . into () }) ? ; Ok (func ()) } } \ No newline at end of file +impl WrappedNativeMsgUntyped { + pub fn new_from(typename: &str) -> Result { + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_action_msgs_msg_GoalInfo() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_action_msgs_msg_GoalStatus() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_action_msgs_msg_GoalStatusArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_builtin_interfaces_msg_Duration() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_builtin_interfaces_msg_Time() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_diagnostic_msgs_msg_DiagnosticArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_diagnostic_msgs_msg_DiagnosticStatus() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_diagnostic_msgs_msg_KeyValue() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Accel() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_AccelStamped() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_AccelWithCovariance() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_AccelWithCovarianceStamped() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::< + geometry_msgs::msg::AccelWithCovarianceStamped, + >() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Inertia() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_InertiaStamped() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Point() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Point32() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_PointStamped() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Polygon() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_PolygonStamped() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Pose() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Pose2D() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseStamped() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseWithCovariance() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseWithCovarianceStamped() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::< + geometry_msgs::msg::PoseWithCovarianceStamped, + >() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Quaternion() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_QuaternionStamped() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Transform() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_TransformStamped() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Twist() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_TwistStamped() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_TwistWithCovariance() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_TwistWithCovarianceStamped() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::< + geometry_msgs::msg::TwistWithCovarianceStamped, + >() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Vector3() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Vector3Stamped() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_Wrench() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_geometry_msgs_msg_WrenchStamped() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_lifecycle_msgs_msg_State() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_lifecycle_msgs_msg_Transition() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_lifecycle_msgs_msg_TransitionDescription() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_lifecycle_msgs_msg_TransitionEvent() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_nav_msgs_msg_GridCells() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_nav_msgs_msg_MapMetaData() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_nav_msgs_msg_OccupancyGrid() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_nav_msgs_msg_Odometry() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_nav_msgs_msg_Path() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_FloatingPointRange() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_IntegerRange() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_ListParametersResult() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_Log() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_Parameter() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterDescriptor() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterEvent() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterEventDescriptors() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::< + rcl_interfaces::msg::ParameterEventDescriptors, + >() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterType() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterValue() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_rcl_interfaces_msg_SetParametersResult() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_rosgraph_msgs_msg_Clock() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_BatteryState() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_CameraInfo() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_ChannelFloat32() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_CompressedImage() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_FluidPressure() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_Illuminance() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_Image() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_Imu() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_JointState() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_Joy() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_JoyFeedback() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_JoyFeedbackArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_LaserEcho() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_LaserScan() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_MagneticField() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_MultiDOFJointState() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_MultiEchoLaserScan() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_NavSatFix() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_NavSatStatus() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_PointCloud() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_PointCloud2() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_PointField() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_Range() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_RegionOfInterest() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_RelativeHumidity() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_Temperature() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_sensor_msgs_msg_TimeReference() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_shape_msgs_msg_Mesh() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_shape_msgs_msg_MeshTriangle() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_shape_msgs_msg_Plane() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_shape_msgs_msg_SolidPrimitive() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_statistics_msgs_msg_MetricsMessage() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_statistics_msgs_msg_StatisticDataPoint() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_statistics_msgs_msg_StatisticDataType() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Bool() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Byte() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_ByteMultiArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Char() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_ColorRGBA() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Empty() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Float32() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Float32MultiArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Float64() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Float64MultiArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Header() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Int16() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Int16MultiArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Int32() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Int32MultiArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Int64() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Int64MultiArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Int8() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_Int8MultiArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_MultiArrayDimension() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_MultiArrayLayout() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_String() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt16() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt16MultiArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt32() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt32MultiArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt64() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt64MultiArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt8() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_std_msgs_msg_UInt8MultiArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_stereo_msgs_msg_DisparityImage() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_test_msgs_msg_Arrays() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_test_msgs_msg_BasicTypes() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_test_msgs_msg_BoundedPlainSequences() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_test_msgs_msg_BoundedSequences() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_test_msgs_msg_Builtins() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_test_msgs_msg_Constants() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_test_msgs_msg_Defaults() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_test_msgs_msg_Empty() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_test_msgs_msg_MultiNested() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_test_msgs_msg_Nested() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_test_msgs_msg_Strings() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_test_msgs_msg_UnboundedSequences() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_test_msgs_msg_WStrings() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_tf2_msgs_msg_TF2Error() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_tf2_msgs_msg_TFMessage() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_trajectory_msgs_msg_JointTrajectory() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_trajectory_msgs_msg_JointTrajectoryPoint() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_trajectory_msgs_msg_MultiDOFJointTrajectory() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::< + trajectory_msgs::msg::MultiDOFJointTrajectory, + >() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_trajectory_msgs_msg_MultiDOFJointTrajectoryPoint() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::< + trajectory_msgs::msg::MultiDOFJointTrajectoryPoint, + >() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_unique_identifier_msgs_msg_UUID() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_visualization_msgs_msg_ImageMarker() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarker() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerControl() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::< + visualization_msgs::msg::InteractiveMarkerControl, + >() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerFeedback() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::< + visualization_msgs::msg::InteractiveMarkerFeedback, + >() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerInit() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::< + visualization_msgs::msg::InteractiveMarkerInit, + >() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerPose() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::< + visualization_msgs::msg::InteractiveMarkerPose, + >() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerUpdate() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::< + visualization_msgs::msg::InteractiveMarkerUpdate, + >() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_visualization_msgs_msg_Marker() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_visualization_msgs_msg_MarkerArray() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_visualization_msgs_msg_MenuEntry() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_visualization_msgs_msg_MeshFile() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + #[allow(non_snake_case)] + fn new_wrapped_native_msg_untyped_visualization_msgs_msg_UVCoordinate() -> WrappedNativeMsgUntyped { + WrappedNativeMsgUntyped::new::() + } + static MAP: phf::Map<&'static str, fn() -> WrappedNativeMsgUntyped> = phf::phf_map! { + "action_msgs/msg/GoalInfo" => + new_wrapped_native_msg_untyped_action_msgs_msg_GoalInfo, + "action_msgs/msg/GoalStatus" => + new_wrapped_native_msg_untyped_action_msgs_msg_GoalStatus, + "action_msgs/msg/GoalStatusArray" => + new_wrapped_native_msg_untyped_action_msgs_msg_GoalStatusArray, + "builtin_interfaces/msg/Duration" => + new_wrapped_native_msg_untyped_builtin_interfaces_msg_Duration, + "builtin_interfaces/msg/Time" => + new_wrapped_native_msg_untyped_builtin_interfaces_msg_Time, + "diagnostic_msgs/msg/DiagnosticArray" => + new_wrapped_native_msg_untyped_diagnostic_msgs_msg_DiagnosticArray, + "diagnostic_msgs/msg/DiagnosticStatus" => + new_wrapped_native_msg_untyped_diagnostic_msgs_msg_DiagnosticStatus, + "diagnostic_msgs/msg/KeyValue" => + new_wrapped_native_msg_untyped_diagnostic_msgs_msg_KeyValue, + "geometry_msgs/msg/Accel" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_Accel, + "geometry_msgs/msg/AccelStamped" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_AccelStamped, + "geometry_msgs/msg/AccelWithCovariance" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_AccelWithCovariance, + "geometry_msgs/msg/AccelWithCovarianceStamped" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_AccelWithCovarianceStamped, + "geometry_msgs/msg/Inertia" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_Inertia, + "geometry_msgs/msg/InertiaStamped" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_InertiaStamped, + "geometry_msgs/msg/Point" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_Point, + "geometry_msgs/msg/Point32" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_Point32, + "geometry_msgs/msg/PointStamped" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_PointStamped, + "geometry_msgs/msg/Polygon" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_Polygon, + "geometry_msgs/msg/PolygonStamped" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_PolygonStamped, + "geometry_msgs/msg/Pose" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_Pose, + "geometry_msgs/msg/Pose2D" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_Pose2D, + "geometry_msgs/msg/PoseArray" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseArray, + "geometry_msgs/msg/PoseStamped" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseStamped, + "geometry_msgs/msg/PoseWithCovariance" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseWithCovariance, + "geometry_msgs/msg/PoseWithCovarianceStamped" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_PoseWithCovarianceStamped, + "geometry_msgs/msg/Quaternion" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_Quaternion, + "geometry_msgs/msg/QuaternionStamped" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_QuaternionStamped, + "geometry_msgs/msg/Transform" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_Transform, + "geometry_msgs/msg/TransformStamped" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_TransformStamped, + "geometry_msgs/msg/Twist" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_Twist, + "geometry_msgs/msg/TwistStamped" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_TwistStamped, + "geometry_msgs/msg/TwistWithCovariance" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_TwistWithCovariance, + "geometry_msgs/msg/TwistWithCovarianceStamped" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_TwistWithCovarianceStamped, + "geometry_msgs/msg/Vector3" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_Vector3, + "geometry_msgs/msg/Vector3Stamped" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_Vector3Stamped, + "geometry_msgs/msg/Wrench" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_Wrench, + "geometry_msgs/msg/WrenchStamped" => + new_wrapped_native_msg_untyped_geometry_msgs_msg_WrenchStamped, + "lifecycle_msgs/msg/State" => + new_wrapped_native_msg_untyped_lifecycle_msgs_msg_State, + "lifecycle_msgs/msg/Transition" => + new_wrapped_native_msg_untyped_lifecycle_msgs_msg_Transition, + "lifecycle_msgs/msg/TransitionDescription" => + new_wrapped_native_msg_untyped_lifecycle_msgs_msg_TransitionDescription, + "lifecycle_msgs/msg/TransitionEvent" => + new_wrapped_native_msg_untyped_lifecycle_msgs_msg_TransitionEvent, + "nav_msgs/msg/GridCells" => + new_wrapped_native_msg_untyped_nav_msgs_msg_GridCells, + "nav_msgs/msg/MapMetaData" => + new_wrapped_native_msg_untyped_nav_msgs_msg_MapMetaData, + "nav_msgs/msg/OccupancyGrid" => + new_wrapped_native_msg_untyped_nav_msgs_msg_OccupancyGrid, + "nav_msgs/msg/Odometry" => + new_wrapped_native_msg_untyped_nav_msgs_msg_Odometry, "nav_msgs/msg/Path" => + new_wrapped_native_msg_untyped_nav_msgs_msg_Path, + "rcl_interfaces/msg/FloatingPointRange" => + new_wrapped_native_msg_untyped_rcl_interfaces_msg_FloatingPointRange, + "rcl_interfaces/msg/IntegerRange" => + new_wrapped_native_msg_untyped_rcl_interfaces_msg_IntegerRange, + "rcl_interfaces/msg/ListParametersResult" => + new_wrapped_native_msg_untyped_rcl_interfaces_msg_ListParametersResult, + "rcl_interfaces/msg/Log" => + new_wrapped_native_msg_untyped_rcl_interfaces_msg_Log, + "rcl_interfaces/msg/Parameter" => + new_wrapped_native_msg_untyped_rcl_interfaces_msg_Parameter, + "rcl_interfaces/msg/ParameterDescriptor" => + new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterDescriptor, + "rcl_interfaces/msg/ParameterEvent" => + new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterEvent, + "rcl_interfaces/msg/ParameterEventDescriptors" => + new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterEventDescriptors, + "rcl_interfaces/msg/ParameterType" => + new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterType, + "rcl_interfaces/msg/ParameterValue" => + new_wrapped_native_msg_untyped_rcl_interfaces_msg_ParameterValue, + "rcl_interfaces/msg/SetParametersResult" => + new_wrapped_native_msg_untyped_rcl_interfaces_msg_SetParametersResult, + "rosgraph_msgs/msg/Clock" => + new_wrapped_native_msg_untyped_rosgraph_msgs_msg_Clock, + "sensor_msgs/msg/BatteryState" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_BatteryState, + "sensor_msgs/msg/CameraInfo" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_CameraInfo, + "sensor_msgs/msg/ChannelFloat32" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_ChannelFloat32, + "sensor_msgs/msg/CompressedImage" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_CompressedImage, + "sensor_msgs/msg/FluidPressure" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_FluidPressure, + "sensor_msgs/msg/Illuminance" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_Illuminance, + "sensor_msgs/msg/Image" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_Image, "sensor_msgs/msg/Imu" + => new_wrapped_native_msg_untyped_sensor_msgs_msg_Imu, + "sensor_msgs/msg/JointState" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_JointState, + "sensor_msgs/msg/Joy" => new_wrapped_native_msg_untyped_sensor_msgs_msg_Joy, + "sensor_msgs/msg/JoyFeedback" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_JoyFeedback, + "sensor_msgs/msg/JoyFeedbackArray" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_JoyFeedbackArray, + "sensor_msgs/msg/LaserEcho" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_LaserEcho, + "sensor_msgs/msg/LaserScan" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_LaserScan, + "sensor_msgs/msg/MagneticField" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_MagneticField, + "sensor_msgs/msg/MultiDOFJointState" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_MultiDOFJointState, + "sensor_msgs/msg/MultiEchoLaserScan" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_MultiEchoLaserScan, + "sensor_msgs/msg/NavSatFix" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_NavSatFix, + "sensor_msgs/msg/NavSatStatus" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_NavSatStatus, + "sensor_msgs/msg/PointCloud" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_PointCloud, + "sensor_msgs/msg/PointCloud2" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_PointCloud2, + "sensor_msgs/msg/PointField" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_PointField, + "sensor_msgs/msg/Range" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_Range, + "sensor_msgs/msg/RegionOfInterest" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_RegionOfInterest, + "sensor_msgs/msg/RelativeHumidity" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_RelativeHumidity, + "sensor_msgs/msg/Temperature" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_Temperature, + "sensor_msgs/msg/TimeReference" => + new_wrapped_native_msg_untyped_sensor_msgs_msg_TimeReference, + "shape_msgs/msg/Mesh" => new_wrapped_native_msg_untyped_shape_msgs_msg_Mesh, + "shape_msgs/msg/MeshTriangle" => + new_wrapped_native_msg_untyped_shape_msgs_msg_MeshTriangle, + "shape_msgs/msg/Plane" => + new_wrapped_native_msg_untyped_shape_msgs_msg_Plane, + "shape_msgs/msg/SolidPrimitive" => + new_wrapped_native_msg_untyped_shape_msgs_msg_SolidPrimitive, + "statistics_msgs/msg/MetricsMessage" => + new_wrapped_native_msg_untyped_statistics_msgs_msg_MetricsMessage, + "statistics_msgs/msg/StatisticDataPoint" => + new_wrapped_native_msg_untyped_statistics_msgs_msg_StatisticDataPoint, + "statistics_msgs/msg/StatisticDataType" => + new_wrapped_native_msg_untyped_statistics_msgs_msg_StatisticDataType, + "std_msgs/msg/Bool" => new_wrapped_native_msg_untyped_std_msgs_msg_Bool, + "std_msgs/msg/Byte" => new_wrapped_native_msg_untyped_std_msgs_msg_Byte, + "std_msgs/msg/ByteMultiArray" => + new_wrapped_native_msg_untyped_std_msgs_msg_ByteMultiArray, + "std_msgs/msg/Char" => new_wrapped_native_msg_untyped_std_msgs_msg_Char, + "std_msgs/msg/ColorRGBA" => + new_wrapped_native_msg_untyped_std_msgs_msg_ColorRGBA, "std_msgs/msg/Empty" + => new_wrapped_native_msg_untyped_std_msgs_msg_Empty, "std_msgs/msg/Float32" + => new_wrapped_native_msg_untyped_std_msgs_msg_Float32, + "std_msgs/msg/Float32MultiArray" => + new_wrapped_native_msg_untyped_std_msgs_msg_Float32MultiArray, + "std_msgs/msg/Float64" => + new_wrapped_native_msg_untyped_std_msgs_msg_Float64, + "std_msgs/msg/Float64MultiArray" => + new_wrapped_native_msg_untyped_std_msgs_msg_Float64MultiArray, + "std_msgs/msg/Header" => new_wrapped_native_msg_untyped_std_msgs_msg_Header, + "std_msgs/msg/Int16" => new_wrapped_native_msg_untyped_std_msgs_msg_Int16, + "std_msgs/msg/Int16MultiArray" => + new_wrapped_native_msg_untyped_std_msgs_msg_Int16MultiArray, + "std_msgs/msg/Int32" => new_wrapped_native_msg_untyped_std_msgs_msg_Int32, + "std_msgs/msg/Int32MultiArray" => + new_wrapped_native_msg_untyped_std_msgs_msg_Int32MultiArray, + "std_msgs/msg/Int64" => new_wrapped_native_msg_untyped_std_msgs_msg_Int64, + "std_msgs/msg/Int64MultiArray" => + new_wrapped_native_msg_untyped_std_msgs_msg_Int64MultiArray, + "std_msgs/msg/Int8" => new_wrapped_native_msg_untyped_std_msgs_msg_Int8, + "std_msgs/msg/Int8MultiArray" => + new_wrapped_native_msg_untyped_std_msgs_msg_Int8MultiArray, + "std_msgs/msg/MultiArrayDimension" => + new_wrapped_native_msg_untyped_std_msgs_msg_MultiArrayDimension, + "std_msgs/msg/MultiArrayLayout" => + new_wrapped_native_msg_untyped_std_msgs_msg_MultiArrayLayout, + "std_msgs/msg/String" => new_wrapped_native_msg_untyped_std_msgs_msg_String, + "std_msgs/msg/UInt16" => new_wrapped_native_msg_untyped_std_msgs_msg_UInt16, + "std_msgs/msg/UInt16MultiArray" => + new_wrapped_native_msg_untyped_std_msgs_msg_UInt16MultiArray, + "std_msgs/msg/UInt32" => new_wrapped_native_msg_untyped_std_msgs_msg_UInt32, + "std_msgs/msg/UInt32MultiArray" => + new_wrapped_native_msg_untyped_std_msgs_msg_UInt32MultiArray, + "std_msgs/msg/UInt64" => new_wrapped_native_msg_untyped_std_msgs_msg_UInt64, + "std_msgs/msg/UInt64MultiArray" => + new_wrapped_native_msg_untyped_std_msgs_msg_UInt64MultiArray, + "std_msgs/msg/UInt8" => new_wrapped_native_msg_untyped_std_msgs_msg_UInt8, + "std_msgs/msg/UInt8MultiArray" => + new_wrapped_native_msg_untyped_std_msgs_msg_UInt8MultiArray, + "stereo_msgs/msg/DisparityImage" => + new_wrapped_native_msg_untyped_stereo_msgs_msg_DisparityImage, + "test_msgs/msg/Arrays" => + new_wrapped_native_msg_untyped_test_msgs_msg_Arrays, + "test_msgs/msg/BasicTypes" => + new_wrapped_native_msg_untyped_test_msgs_msg_BasicTypes, + "test_msgs/msg/BoundedPlainSequences" => + new_wrapped_native_msg_untyped_test_msgs_msg_BoundedPlainSequences, + "test_msgs/msg/BoundedSequences" => + new_wrapped_native_msg_untyped_test_msgs_msg_BoundedSequences, + "test_msgs/msg/Builtins" => + new_wrapped_native_msg_untyped_test_msgs_msg_Builtins, + "test_msgs/msg/Constants" => + new_wrapped_native_msg_untyped_test_msgs_msg_Constants, + "test_msgs/msg/Defaults" => + new_wrapped_native_msg_untyped_test_msgs_msg_Defaults, "test_msgs/msg/Empty" + => new_wrapped_native_msg_untyped_test_msgs_msg_Empty, + "test_msgs/msg/MultiNested" => + new_wrapped_native_msg_untyped_test_msgs_msg_MultiNested, + "test_msgs/msg/Nested" => + new_wrapped_native_msg_untyped_test_msgs_msg_Nested, "test_msgs/msg/Strings" + => new_wrapped_native_msg_untyped_test_msgs_msg_Strings, + "test_msgs/msg/UnboundedSequences" => + new_wrapped_native_msg_untyped_test_msgs_msg_UnboundedSequences, + "test_msgs/msg/WStrings" => + new_wrapped_native_msg_untyped_test_msgs_msg_WStrings, + "tf2_msgs/msg/TF2Error" => + new_wrapped_native_msg_untyped_tf2_msgs_msg_TF2Error, + "tf2_msgs/msg/TFMessage" => + new_wrapped_native_msg_untyped_tf2_msgs_msg_TFMessage, + "trajectory_msgs/msg/JointTrajectory" => + new_wrapped_native_msg_untyped_trajectory_msgs_msg_JointTrajectory, + "trajectory_msgs/msg/JointTrajectoryPoint" => + new_wrapped_native_msg_untyped_trajectory_msgs_msg_JointTrajectoryPoint, + "trajectory_msgs/msg/MultiDOFJointTrajectory" => + new_wrapped_native_msg_untyped_trajectory_msgs_msg_MultiDOFJointTrajectory, + "trajectory_msgs/msg/MultiDOFJointTrajectoryPoint" => + new_wrapped_native_msg_untyped_trajectory_msgs_msg_MultiDOFJointTrajectoryPoint, + "unique_identifier_msgs/msg/UUID" => + new_wrapped_native_msg_untyped_unique_identifier_msgs_msg_UUID, + "visualization_msgs/msg/ImageMarker" => + new_wrapped_native_msg_untyped_visualization_msgs_msg_ImageMarker, + "visualization_msgs/msg/InteractiveMarker" => + new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarker, + "visualization_msgs/msg/InteractiveMarkerControl" => + new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerControl, + "visualization_msgs/msg/InteractiveMarkerFeedback" => + new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerFeedback, + "visualization_msgs/msg/InteractiveMarkerInit" => + new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerInit, + "visualization_msgs/msg/InteractiveMarkerPose" => + new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerPose, + "visualization_msgs/msg/InteractiveMarkerUpdate" => + new_wrapped_native_msg_untyped_visualization_msgs_msg_InteractiveMarkerUpdate, + "visualization_msgs/msg/Marker" => + new_wrapped_native_msg_untyped_visualization_msgs_msg_Marker, + "visualization_msgs/msg/MarkerArray" => + new_wrapped_native_msg_untyped_visualization_msgs_msg_MarkerArray, + "visualization_msgs/msg/MenuEntry" => + new_wrapped_native_msg_untyped_visualization_msgs_msg_MenuEntry, + "visualization_msgs/msg/MeshFile" => + new_wrapped_native_msg_untyped_visualization_msgs_msg_MeshFile, + "visualization_msgs/msg/UVCoordinate" => + new_wrapped_native_msg_untyped_visualization_msgs_msg_UVCoordinate + }; + let func = MAP + .get(typename) + .ok_or_else(|| Error::InvalidMessageType { + msgtype: typename.into(), + })?; + Ok(func()) + } +} diff --git a/r2r/bindings/action_msgs.rs b/r2r/bindings/action_msgs.rs index 8aedd5b..cafaba3 100644 --- a/r2r/bindings/action_msgs.rs +++ b/r2r/bindings/action_msgs.rs @@ -1 +1,285 @@ -pub mod msg { use super :: super :: * ; # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] # [serde (default)] pub struct GoalInfo { pub goal_id : unique_identifier_msgs :: msg :: UUID , pub stamp : builtin_interfaces :: msg :: Time } impl WrappedTypesupport for GoalInfo { type CStruct = action_msgs__msg__GoalInfo ; fn get_ts () -> & 'static rosidl_message_type_support_t { unsafe { & * rosidl_typesupport_c__get_message_type_support_handle__action_msgs__msg__GoalInfo () } } fn create_msg () -> * mut action_msgs__msg__GoalInfo { unsafe { action_msgs__msg__GoalInfo__create () } } fn destroy_msg (msg : * mut action_msgs__msg__GoalInfo) -> () { unsafe { action_msgs__msg__GoalInfo__destroy (msg) } ; } fn from_native (# [allow (unused)] msg : & Self :: CStruct) -> GoalInfo { GoalInfo { goal_id : unique_identifier_msgs :: msg :: UUID :: from_native (& msg . goal_id) , stamp : builtin_interfaces :: msg :: Time :: from_native (& msg . stamp) , } } fn copy_to_native (& self , # [allow (unused)] msg : & mut Self :: CStruct) { self . goal_id . copy_to_native (& mut msg . goal_id) ; self . stamp . copy_to_native (& mut msg . stamp) ; } } impl Default for GoalInfo { fn default () -> Self { let msg_native = WrappedNativeMsg :: < GoalInfo > :: new () ; GoalInfo :: from_native (& msg_native) } } # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] # [serde (default)] pub struct GoalStatus { pub goal_info : action_msgs :: msg :: GoalInfo , pub status : i8 } impl WrappedTypesupport for GoalStatus { type CStruct = action_msgs__msg__GoalStatus ; fn get_ts () -> & 'static rosidl_message_type_support_t { unsafe { & * rosidl_typesupport_c__get_message_type_support_handle__action_msgs__msg__GoalStatus () } } fn create_msg () -> * mut action_msgs__msg__GoalStatus { unsafe { action_msgs__msg__GoalStatus__create () } } fn destroy_msg (msg : * mut action_msgs__msg__GoalStatus) -> () { unsafe { action_msgs__msg__GoalStatus__destroy (msg) } ; } fn from_native (# [allow (unused)] msg : & Self :: CStruct) -> GoalStatus { GoalStatus { goal_info : action_msgs :: msg :: GoalInfo :: from_native (& msg . goal_info) , status : msg . status , } } fn copy_to_native (& self , # [allow (unused)] msg : & mut Self :: CStruct) { self . goal_info . copy_to_native (& mut msg . goal_info) ; msg . status = self . status ; } } impl Default for GoalStatus { fn default () -> Self { let msg_native = WrappedNativeMsg :: < GoalStatus > :: new () ; GoalStatus :: from_native (& msg_native) } } # [allow (non_upper_case_globals)] impl GoalStatus { pub const STATUS_ABORTED : _bindgen_ty_7 = action_msgs__msg__GoalStatus__STATUS_ABORTED ; pub const STATUS_ACCEPTED : _bindgen_ty_2 = action_msgs__msg__GoalStatus__STATUS_ACCEPTED ; pub const STATUS_CANCELED : _bindgen_ty_6 = action_msgs__msg__GoalStatus__STATUS_CANCELED ; pub const STATUS_CANCELING : _bindgen_ty_4 = action_msgs__msg__GoalStatus__STATUS_CANCELING ; pub const STATUS_EXECUTING : _bindgen_ty_3 = action_msgs__msg__GoalStatus__STATUS_EXECUTING ; pub const STATUS_SUCCEEDED : _bindgen_ty_5 = action_msgs__msg__GoalStatus__STATUS_SUCCEEDED ; pub const STATUS_UNKNOWN : _bindgen_ty_1 = action_msgs__msg__GoalStatus__STATUS_UNKNOWN ; } # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] # [serde (default)] pub struct GoalStatusArray { pub status_list : Vec < action_msgs :: msg :: GoalStatus > } impl WrappedTypesupport for GoalStatusArray { type CStruct = action_msgs__msg__GoalStatusArray ; fn get_ts () -> & 'static rosidl_message_type_support_t { unsafe { & * rosidl_typesupport_c__get_message_type_support_handle__action_msgs__msg__GoalStatusArray () } } fn create_msg () -> * mut action_msgs__msg__GoalStatusArray { unsafe { action_msgs__msg__GoalStatusArray__create () } } fn destroy_msg (msg : * mut action_msgs__msg__GoalStatusArray) -> () { unsafe { action_msgs__msg__GoalStatusArray__destroy (msg) } ; } fn from_native (# [allow (unused)] msg : & Self :: CStruct) -> GoalStatusArray { GoalStatusArray { status_list : { let mut temp = Vec :: with_capacity (msg . status_list . size) ; let slice = unsafe { std :: slice :: from_raw_parts (msg . status_list . data , msg . status_list . size) } ; for s in slice { temp . push (action_msgs :: msg :: GoalStatus :: from_native (s)) ; } temp } , } } fn copy_to_native (& self , # [allow (unused)] msg : & mut Self :: CStruct) { unsafe { action_msgs__msg__GoalStatus__Sequence__fini (& mut msg . status_list) ; action_msgs__msg__GoalStatus__Sequence__init (& mut msg . status_list , self . status_list . len ()) ; let slice = std :: slice :: from_raw_parts_mut (msg . status_list . data , msg . status_list . size) ; for (t , s) in slice . iter_mut () . zip (& self . status_list) { s . copy_to_native (t) ; } } } } impl Default for GoalStatusArray { fn default () -> Self { let msg_native = WrappedNativeMsg :: < GoalStatusArray > :: new () ; GoalStatusArray :: from_native (& msg_native) } } } pub mod srv { # [allow (non_snake_case)] pub mod CancelGoal { use super :: super :: super :: * ; # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] pub struct Service () ; impl WrappedServiceTypeSupport for Service { type Request = Request ; type Response = Response ; fn get_ts () -> & 'static rosidl_service_type_support_t { unsafe { & * rosidl_typesupport_c__get_service_type_support_handle__action_msgs__srv__CancelGoal () } } } # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] # [serde (default)] pub struct Request { pub goal_info : action_msgs :: msg :: GoalInfo } impl WrappedTypesupport for Request { type CStruct = action_msgs__srv__CancelGoal_Request ; fn get_ts () -> & 'static rosidl_message_type_support_t { unsafe { & * rosidl_typesupport_c__get_message_type_support_handle__action_msgs__srv__CancelGoal_Request () } } fn create_msg () -> * mut action_msgs__srv__CancelGoal_Request { unsafe { action_msgs__srv__CancelGoal_Request__create () } } fn destroy_msg (msg : * mut action_msgs__srv__CancelGoal_Request) -> () { unsafe { action_msgs__srv__CancelGoal_Request__destroy (msg) } ; } fn from_native (# [allow (unused)] msg : & Self :: CStruct) -> Request { Request { goal_info : action_msgs :: msg :: GoalInfo :: from_native (& msg . goal_info) , } } fn copy_to_native (& self , # [allow (unused)] msg : & mut Self :: CStruct) { self . goal_info . copy_to_native (& mut msg . goal_info) ; } } impl Default for Request { fn default () -> Self { let msg_native = WrappedNativeMsg :: < Request > :: new () ; Request :: from_native (& msg_native) } } # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] # [serde (default)] pub struct Response { pub return_code : i8 , pub goals_canceling : Vec < action_msgs :: msg :: GoalInfo > } impl WrappedTypesupport for Response { type CStruct = action_msgs__srv__CancelGoal_Response ; fn get_ts () -> & 'static rosidl_message_type_support_t { unsafe { & * rosidl_typesupport_c__get_message_type_support_handle__action_msgs__srv__CancelGoal_Response () } } fn create_msg () -> * mut action_msgs__srv__CancelGoal_Response { unsafe { action_msgs__srv__CancelGoal_Response__create () } } fn destroy_msg (msg : * mut action_msgs__srv__CancelGoal_Response) -> () { unsafe { action_msgs__srv__CancelGoal_Response__destroy (msg) } ; } fn from_native (# [allow (unused)] msg : & Self :: CStruct) -> Response { Response { return_code : msg . return_code , goals_canceling : { let mut temp = Vec :: with_capacity (msg . goals_canceling . size) ; let slice = unsafe { std :: slice :: from_raw_parts (msg . goals_canceling . data , msg . goals_canceling . size) } ; for s in slice { temp . push (action_msgs :: msg :: GoalInfo :: from_native (s)) ; } temp } , } } fn copy_to_native (& self , # [allow (unused)] msg : & mut Self :: CStruct) { msg . return_code = self . return_code ; unsafe { action_msgs__msg__GoalInfo__Sequence__fini (& mut msg . goals_canceling) ; action_msgs__msg__GoalInfo__Sequence__init (& mut msg . goals_canceling , self . goals_canceling . len ()) ; let slice = std :: slice :: from_raw_parts_mut (msg . goals_canceling . data , msg . goals_canceling . size) ; for (t , s) in slice . iter_mut () . zip (& self . goals_canceling) { s . copy_to_native (t) ; } } } } impl Default for Response { fn default () -> Self { let msg_native = WrappedNativeMsg :: < Response > :: new () ; Response :: from_native (& msg_native) } } # [allow (non_upper_case_globals)] impl Response { pub const ERROR_GOAL_TERMINATED : _bindgen_ty_11 = action_msgs__srv__CancelGoal_Response__ERROR_GOAL_TERMINATED ; pub const ERROR_NONE : _bindgen_ty_8 = action_msgs__srv__CancelGoal_Response__ERROR_NONE ; pub const ERROR_REJECTED : _bindgen_ty_9 = action_msgs__srv__CancelGoal_Response__ERROR_REJECTED ; pub const ERROR_UNKNOWN_GOAL_ID : _bindgen_ty_10 = action_msgs__srv__CancelGoal_Response__ERROR_UNKNOWN_GOAL_ID ; } } } \ No newline at end of file +pub mod srv { + #[allow(non_snake_case)] + pub mod CancelGoal { + use super::super::super::*; + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] + pub struct Service(); + impl WrappedServiceTypeSupport for Service { + type Request = Request; + type Response = Response; + fn get_ts() -> &'static rosidl_service_type_support_t { + unsafe { + &*rosidl_typesupport_c__get_service_type_support_handle__action_msgs__srv__CancelGoal() + } + } + } + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] + #[serde(default)] + pub struct Request { + pub goal_info: action_msgs::msg::GoalInfo, + } + impl WrappedTypesupport for Request { + type CStruct = action_msgs__srv__CancelGoal_Request; + fn get_ts() -> &'static rosidl_message_type_support_t { + unsafe { + &*rosidl_typesupport_c__get_message_type_support_handle__action_msgs__srv__CancelGoal_Request() + } + } + fn create_msg() -> *mut action_msgs__srv__CancelGoal_Request { + #[cfg(not(feature = "doc-only"))] + unsafe { action_msgs__srv__CancelGoal_Request__create() } + #[cfg(feature = "doc-only")] + action_msgs__srv__CancelGoal_Request__create() + } + fn destroy_msg(msg: *mut action_msgs__srv__CancelGoal_Request) -> () { + #[cfg(not(feature = "doc-only"))] + unsafe { action_msgs__srv__CancelGoal_Request__destroy(msg) }; + #[cfg(feature = "doc-only")] + action_msgs__srv__CancelGoal_Request__destroy(msg) + } + fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Request { + Request { + goal_info: action_msgs::msg::GoalInfo::from_native(&msg.goal_info), + } + } + fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) { + self.goal_info.copy_to_native(&mut msg.goal_info); + } + } + impl Default for Request { + fn default() -> Self { + let msg_native = WrappedNativeMsg::::new(); + Request::from_native(&msg_native) + } + } + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] + #[serde(default)] + pub struct Response { + pub return_code: i8, + pub goals_canceling: Vec, + } + impl WrappedTypesupport for Response { + type CStruct = action_msgs__srv__CancelGoal_Response; + fn get_ts() -> &'static rosidl_message_type_support_t { + unsafe { + &*rosidl_typesupport_c__get_message_type_support_handle__action_msgs__srv__CancelGoal_Response() + } + } + fn create_msg() -> *mut action_msgs__srv__CancelGoal_Response { + #[cfg(not(feature = "doc-only"))] + unsafe { action_msgs__srv__CancelGoal_Response__create() } + #[cfg(feature = "doc-only")] + action_msgs__srv__CancelGoal_Response__create() + } + fn destroy_msg(msg: *mut action_msgs__srv__CancelGoal_Response) -> () { + #[cfg(not(feature = "doc-only"))] + unsafe { action_msgs__srv__CancelGoal_Response__destroy(msg) }; + #[cfg(feature = "doc-only")] + action_msgs__srv__CancelGoal_Response__destroy(msg) + } + fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Response { + Response { + return_code: msg.return_code, + goals_canceling: { + let mut temp = Vec::with_capacity(msg.goals_canceling.size); + let slice = unsafe { + std::slice::from_raw_parts( + msg.goals_canceling.data, + msg.goals_canceling.size, + ) + }; + for s in slice { + temp.push(action_msgs::msg::GoalInfo::from_native(s)); + } + temp + }, + } + } + fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) { + msg.return_code = self.return_code; + unsafe { + action_msgs__msg__GoalInfo__Sequence__fini(&mut msg.goals_canceling); + action_msgs__msg__GoalInfo__Sequence__init( + &mut msg.goals_canceling, + self.goals_canceling.len(), + ); + let slice = std::slice::from_raw_parts_mut( + msg.goals_canceling.data, + msg.goals_canceling.size, + ); + for (t, s) in slice.iter_mut().zip(&self.goals_canceling) { + s.copy_to_native(t); + } + } + } + } + impl Default for Response { + fn default() -> Self { + let msg_native = WrappedNativeMsg::::new(); + Response::from_native(&msg_native) + } + } + #[allow(non_upper_case_globals)] + impl Response { + pub const ERROR_GOAL_TERMINATED: _bindgen_ty_11 = action_msgs__srv__CancelGoal_Response__ERROR_GOAL_TERMINATED; + pub const ERROR_NONE: _bindgen_ty_8 = action_msgs__srv__CancelGoal_Response__ERROR_NONE; + pub const ERROR_REJECTED: _bindgen_ty_9 = action_msgs__srv__CancelGoal_Response__ERROR_REJECTED; + pub const ERROR_UNKNOWN_GOAL_ID: _bindgen_ty_10 = action_msgs__srv__CancelGoal_Response__ERROR_UNKNOWN_GOAL_ID; + } + } +} +pub mod msg { + use super::super::*; + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] + #[serde(default)] + pub struct GoalInfo { + pub goal_id: unique_identifier_msgs::msg::UUID, + pub stamp: builtin_interfaces::msg::Time, + } + impl WrappedTypesupport for GoalInfo { + type CStruct = action_msgs__msg__GoalInfo; + fn get_ts() -> &'static rosidl_message_type_support_t { + unsafe { + &*rosidl_typesupport_c__get_message_type_support_handle__action_msgs__msg__GoalInfo() + } + } + fn create_msg() -> *mut action_msgs__msg__GoalInfo { + #[cfg(not(feature = "doc-only"))] + unsafe { action_msgs__msg__GoalInfo__create() } + #[cfg(feature = "doc-only")] action_msgs__msg__GoalInfo__create() + } + fn destroy_msg(msg: *mut action_msgs__msg__GoalInfo) -> () { + #[cfg(not(feature = "doc-only"))] + unsafe { action_msgs__msg__GoalInfo__destroy(msg) }; + #[cfg(feature = "doc-only")] action_msgs__msg__GoalInfo__destroy(msg) + } + fn from_native(#[allow(unused)] msg: &Self::CStruct) -> GoalInfo { + GoalInfo { + goal_id: unique_identifier_msgs::msg::UUID::from_native(&msg.goal_id), + stamp: builtin_interfaces::msg::Time::from_native(&msg.stamp), + } + } + fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) { + self.goal_id.copy_to_native(&mut msg.goal_id); + self.stamp.copy_to_native(&mut msg.stamp); + } + } + impl Default for GoalInfo { + fn default() -> Self { + let msg_native = WrappedNativeMsg::::new(); + GoalInfo::from_native(&msg_native) + } + } + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] + #[serde(default)] + pub struct GoalStatus { + pub goal_info: action_msgs::msg::GoalInfo, + pub status: i8, + } + impl WrappedTypesupport for GoalStatus { + type CStruct = action_msgs__msg__GoalStatus; + fn get_ts() -> &'static rosidl_message_type_support_t { + unsafe { + &*rosidl_typesupport_c__get_message_type_support_handle__action_msgs__msg__GoalStatus() + } + } + fn create_msg() -> *mut action_msgs__msg__GoalStatus { + #[cfg(not(feature = "doc-only"))] + unsafe { action_msgs__msg__GoalStatus__create() } + #[cfg(feature = "doc-only")] action_msgs__msg__GoalStatus__create() + } + fn destroy_msg(msg: *mut action_msgs__msg__GoalStatus) -> () { + #[cfg(not(feature = "doc-only"))] + unsafe { action_msgs__msg__GoalStatus__destroy(msg) }; + #[cfg(feature = "doc-only")] action_msgs__msg__GoalStatus__destroy(msg) + } + fn from_native(#[allow(unused)] msg: &Self::CStruct) -> GoalStatus { + GoalStatus { + goal_info: action_msgs::msg::GoalInfo::from_native(&msg.goal_info), + status: msg.status, + } + } + fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) { + self.goal_info.copy_to_native(&mut msg.goal_info); + msg.status = self.status; + } + } + impl Default for GoalStatus { + fn default() -> Self { + let msg_native = WrappedNativeMsg::::new(); + GoalStatus::from_native(&msg_native) + } + } + #[allow(non_upper_case_globals)] + impl GoalStatus { + pub const STATUS_ABORTED: _bindgen_ty_7 = action_msgs__msg__GoalStatus__STATUS_ABORTED; + pub const STATUS_ACCEPTED: _bindgen_ty_2 = action_msgs__msg__GoalStatus__STATUS_ACCEPTED; + pub const STATUS_CANCELED: _bindgen_ty_6 = action_msgs__msg__GoalStatus__STATUS_CANCELED; + pub const STATUS_CANCELING: _bindgen_ty_4 = action_msgs__msg__GoalStatus__STATUS_CANCELING; + pub const STATUS_EXECUTING: _bindgen_ty_3 = action_msgs__msg__GoalStatus__STATUS_EXECUTING; + pub const STATUS_SUCCEEDED: _bindgen_ty_5 = action_msgs__msg__GoalStatus__STATUS_SUCCEEDED; + pub const STATUS_UNKNOWN: _bindgen_ty_1 = action_msgs__msg__GoalStatus__STATUS_UNKNOWN; + } + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] + #[serde(default)] + pub struct GoalStatusArray { + pub status_list: Vec, + } + impl WrappedTypesupport for GoalStatusArray { + type CStruct = action_msgs__msg__GoalStatusArray; + fn get_ts() -> &'static rosidl_message_type_support_t { + unsafe { + &*rosidl_typesupport_c__get_message_type_support_handle__action_msgs__msg__GoalStatusArray() + } + } + fn create_msg() -> *mut action_msgs__msg__GoalStatusArray { + #[cfg(not(feature = "doc-only"))] + unsafe { action_msgs__msg__GoalStatusArray__create() } + #[cfg(feature = "doc-only")] action_msgs__msg__GoalStatusArray__create() + } + fn destroy_msg(msg: *mut action_msgs__msg__GoalStatusArray) -> () { + #[cfg(not(feature = "doc-only"))] + unsafe { action_msgs__msg__GoalStatusArray__destroy(msg) }; + #[cfg(feature = "doc-only")] action_msgs__msg__GoalStatusArray__destroy(msg) + } + fn from_native(#[allow(unused)] msg: &Self::CStruct) -> GoalStatusArray { + GoalStatusArray { + status_list: { + let mut temp = Vec::with_capacity(msg.status_list.size); + let slice = unsafe { + std::slice::from_raw_parts( + msg.status_list.data, + msg.status_list.size, + ) + }; + for s in slice { + temp.push(action_msgs::msg::GoalStatus::from_native(s)); + } + temp + }, + } + } + fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) { + unsafe { + action_msgs__msg__GoalStatus__Sequence__fini(&mut msg.status_list); + action_msgs__msg__GoalStatus__Sequence__init( + &mut msg.status_list, + self.status_list.len(), + ); + let slice = std::slice::from_raw_parts_mut( + msg.status_list.data, + msg.status_list.size, + ); + for (t, s) in slice.iter_mut().zip(&self.status_list) { + s.copy_to_native(t); + } + } + } + } + impl Default for GoalStatusArray { + fn default() -> Self { + let msg_native = WrappedNativeMsg::::new(); + GoalStatusArray::from_native(&msg_native) + } + } +} diff --git a/r2r/bindings/builtin_interfaces.rs b/r2r/bindings/builtin_interfaces.rs index ee002c4..5c1ea2e 100644 --- a/r2r/bindings/builtin_interfaces.rs +++ b/r2r/bindings/builtin_interfaces.rs @@ -1 +1,83 @@ -pub mod msg { use super :: super :: * ; # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] # [serde (default)] pub struct Duration { pub sec : i32 , pub nanosec : u32 } impl WrappedTypesupport for Duration { type CStruct = builtin_interfaces__msg__Duration ; fn get_ts () -> & 'static rosidl_message_type_support_t { unsafe { & * rosidl_typesupport_c__get_message_type_support_handle__builtin_interfaces__msg__Duration () } } fn create_msg () -> * mut builtin_interfaces__msg__Duration { unsafe { builtin_interfaces__msg__Duration__create () } } fn destroy_msg (msg : * mut builtin_interfaces__msg__Duration) -> () { unsafe { builtin_interfaces__msg__Duration__destroy (msg) } ; } fn from_native (# [allow (unused)] msg : & Self :: CStruct) -> Duration { Duration { sec : msg . sec , nanosec : msg . nanosec , } } fn copy_to_native (& self , # [allow (unused)] msg : & mut Self :: CStruct) { msg . sec = self . sec ; msg . nanosec = self . nanosec ; } } impl Default for Duration { fn default () -> Self { let msg_native = WrappedNativeMsg :: < Duration > :: new () ; Duration :: from_native (& msg_native) } } # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] # [serde (default)] pub struct Time { pub sec : i32 , pub nanosec : u32 } impl WrappedTypesupport for Time { type CStruct = builtin_interfaces__msg__Time ; fn get_ts () -> & 'static rosidl_message_type_support_t { unsafe { & * rosidl_typesupport_c__get_message_type_support_handle__builtin_interfaces__msg__Time () } } fn create_msg () -> * mut builtin_interfaces__msg__Time { unsafe { builtin_interfaces__msg__Time__create () } } fn destroy_msg (msg : * mut builtin_interfaces__msg__Time) -> () { unsafe { builtin_interfaces__msg__Time__destroy (msg) } ; } fn from_native (# [allow (unused)] msg : & Self :: CStruct) -> Time { Time { sec : msg . sec , nanosec : msg . nanosec , } } fn copy_to_native (& self , # [allow (unused)] msg : & mut Self :: CStruct) { msg . sec = self . sec ; msg . nanosec = self . nanosec ; } } impl Default for Time { fn default () -> Self { let msg_native = WrappedNativeMsg :: < Time > :: new () ; Time :: from_native (& msg_native) } } } \ No newline at end of file +pub mod msg { + use super::super::*; + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] + #[serde(default)] + pub struct Duration { + pub sec: i32, + pub nanosec: u32, + } + impl WrappedTypesupport for Duration { + type CStruct = builtin_interfaces__msg__Duration; + fn get_ts() -> &'static rosidl_message_type_support_t { + unsafe { + &*rosidl_typesupport_c__get_message_type_support_handle__builtin_interfaces__msg__Duration() + } + } + fn create_msg() -> *mut builtin_interfaces__msg__Duration { + #[cfg(not(feature = "doc-only"))] + unsafe { builtin_interfaces__msg__Duration__create() } + #[cfg(feature = "doc-only")] builtin_interfaces__msg__Duration__create() + } + fn destroy_msg(msg: *mut builtin_interfaces__msg__Duration) -> () { + #[cfg(not(feature = "doc-only"))] + unsafe { builtin_interfaces__msg__Duration__destroy(msg) }; + #[cfg(feature = "doc-only")] builtin_interfaces__msg__Duration__destroy(msg) + } + fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Duration { + Duration { + sec: msg.sec, + nanosec: msg.nanosec, + } + } + fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) { + msg.sec = self.sec; + msg.nanosec = self.nanosec; + } + } + impl Default for Duration { + fn default() -> Self { + let msg_native = WrappedNativeMsg::::new(); + Duration::from_native(&msg_native) + } + } + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] + #[serde(default)] + pub struct Time { + pub sec: i32, + pub nanosec: u32, + } + impl WrappedTypesupport for Time { + type CStruct = builtin_interfaces__msg__Time; + fn get_ts() -> &'static rosidl_message_type_support_t { + unsafe { + &*rosidl_typesupport_c__get_message_type_support_handle__builtin_interfaces__msg__Time() + } + } + fn create_msg() -> *mut builtin_interfaces__msg__Time { + #[cfg(not(feature = "doc-only"))] + unsafe { builtin_interfaces__msg__Time__create() } + #[cfg(feature = "doc-only")] builtin_interfaces__msg__Time__create() + } + fn destroy_msg(msg: *mut builtin_interfaces__msg__Time) -> () { + #[cfg(not(feature = "doc-only"))] + unsafe { builtin_interfaces__msg__Time__destroy(msg) }; + #[cfg(feature = "doc-only")] builtin_interfaces__msg__Time__destroy(msg) + } + fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Time { + Time { + sec: msg.sec, + nanosec: msg.nanosec, + } + } + fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) { + msg.sec = self.sec; + msg.nanosec = self.nanosec; + } + } + impl Default for Time { + fn default() -> Self { + let msg_native = WrappedNativeMsg::