From fd4524c67e790bb1ccf93c2985f3a0933f394296 Mon Sep 17 00:00:00 2001 From: aeon Date: Fri, 23 Jun 2023 23:55:35 +0800 Subject: [PATCH] Refresh saved bindings for docs --- r2r/bindings/_r2r_generated_action_helper.rs | 20 +- r2r/bindings/_r2r_generated_msgs.rs | 24 +- r2r/bindings/_r2r_generated_service_helper.rs | 164 +- r2r/bindings/_r2r_generated_untyped_helper.rs | 660 +- r2r/bindings/action_msgs.rs | 364 +- r2r/bindings/actionlib_msgs.rs | 216 +- r2r/bindings/builtin_interfaces.rs | 128 +- r2r/bindings/composition_interfaces.rs | 465 +- r2r/bindings/diagnostic_msgs.rs | 512 +- r2r/bindings/files.txt | 34 +- r2r/bindings/geometry_msgs.rs | 1865 +- r2r/bindings/lifecycle_msgs.rs | 861 +- r2r/bindings/nav_msgs.rs | 918 +- r2r/bindings/rcl_interfaces.rs | 1741 +- r2r/bindings/rmw_dds_common.rs | 223 +- r2r/bindings/rosbag2_interfaces.rs | 1450 +- r2r/bindings/rosgraph_msgs.rs | 63 +- r2r/bindings/sensor_msgs.rs | 2280 +- r2r/bindings/shape_msgs.rs | 295 +- r2r/bindings/statistics_msgs.rs | 215 +- r2r/bindings/std_msgs.rs | 1856 +- r2r/bindings/std_srvs.rs | 405 +- r2r/bindings/stereo_msgs.rs | 84 +- r2r/bindings/test_msgs.rs | 3863 +-- r2r/bindings/tf2_msgs.rs | 895 +- r2r/bindings/trajectory_msgs.rs | 330 +- r2r/bindings/unique_identifier_msgs.rs | 66 +- r2r/bindings/visualization_msgs.rs | 1242 +- r2r_msg_gen/bindings/constants.rs | 33 +- .../bindings/introspection_functions.rs | 281 +- r2r_msg_gen/bindings/msg_bindings.rs | 26132 ++++------------ r2r_msg_gen/bindings/msg_bindings_doc_only.rs | 1 + r2r_msg_gen/bindings/msg_includes.h | 394 +- 33 files changed, 5687 insertions(+), 42393 deletions(-) create mode 100644 r2r_msg_gen/bindings/msg_bindings_doc_only.rs diff --git a/r2r/bindings/_r2r_generated_action_helper.rs b/r2r/bindings/_r2r_generated_action_helper.rs index d304582..e44dacf 100644 --- a/r2r/bindings/_r2r_generated_action_helper.rs +++ b/r2r/bindings/_r2r_generated_action_helper.rs @@ -1,19 +1 @@ - -impl UntypedActionSupport { - pub fn new_from(typename: &str) -> Result { - - if typename == "test_msgs/action/Fibonacci" { - return Ok(UntypedActionSupport::new::()); - } - - if typename == "test_msgs/action/NestedMessage" { - return Ok(UntypedActionSupport::new::()); - } - - if typename == "tf2_msgs/action/LookupTransform" { - return Ok(UntypedActionSupport::new::()); - } - - return Err(Error::InvalidMessageType{ msgtype: typename.into() }) - } -} +impl UntypedActionSupport { pub fn new_from (typename : & str) -> Result < Self > { # [allow (non_snake_case)] fn new_untyped_service_support_test_msgs_action_Fibonacci () -> UntypedActionSupport { UntypedActionSupport :: new :: < test_msgs :: action :: Fibonacci :: Action > () } # [allow (non_snake_case)] fn new_untyped_service_support_test_msgs_action_NestedMessage () -> UntypedActionSupport { UntypedActionSupport :: new :: < test_msgs :: action :: NestedMessage :: Action > () } # [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 ! { "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 ()) } } \ No newline at end of file diff --git a/r2r/bindings/_r2r_generated_msgs.rs b/r2r/bindings/_r2r_generated_msgs.rs index c5ecc99..c99056f 100644 --- a/r2r/bindings/_r2r_generated_msgs.rs +++ b/r2r/bindings/_r2r_generated_msgs.rs @@ -1,23 +1 @@ -pub mod test_msgs{include!(concat!(env!("OUT_DIR"), "/test_msgs.rs"));} -pub mod shape_msgs{include!(concat!(env!("OUT_DIR"), "/shape_msgs.rs"));} -pub mod builtin_interfaces{include!(concat!(env!("OUT_DIR"), "/builtin_interfaces.rs"));} -pub mod lifecycle_msgs{include!(concat!(env!("OUT_DIR"), "/lifecycle_msgs.rs"));} -pub mod rcl_interfaces{include!(concat!(env!("OUT_DIR"), "/rcl_interfaces.rs"));} -pub mod rosbag2_interfaces{include!(concat!(env!("OUT_DIR"), "/rosbag2_interfaces.rs"));} -pub mod tf2_msgs{include!(concat!(env!("OUT_DIR"), "/tf2_msgs.rs"));} -pub mod std_srvs{include!(concat!(env!("OUT_DIR"), "/std_srvs.rs"));} -pub mod visualization_msgs{include!(concat!(env!("OUT_DIR"), "/visualization_msgs.rs"));} -pub mod diagnostic_msgs{include!(concat!(env!("OUT_DIR"), "/diagnostic_msgs.rs"));} -pub mod composition_interfaces{include!(concat!(env!("OUT_DIR"), "/composition_interfaces.rs"));} -pub mod geometry_msgs{include!(concat!(env!("OUT_DIR"), "/geometry_msgs.rs"));} -pub mod sensor_msgs{include!(concat!(env!("OUT_DIR"), "/sensor_msgs.rs"));} -pub mod rmw_dds_common{include!(concat!(env!("OUT_DIR"), "/rmw_dds_common.rs"));} -pub mod statistics_msgs{include!(concat!(env!("OUT_DIR"), "/statistics_msgs.rs"));} -pub mod stereo_msgs{include!(concat!(env!("OUT_DIR"), "/stereo_msgs.rs"));} -pub mod trajectory_msgs{include!(concat!(env!("OUT_DIR"), "/trajectory_msgs.rs"));} -pub mod action_msgs{include!(concat!(env!("OUT_DIR"), "/action_msgs.rs"));} -pub mod actionlib_msgs{include!(concat!(env!("OUT_DIR"), "/actionlib_msgs.rs"));} -pub mod rosgraph_msgs{include!(concat!(env!("OUT_DIR"), "/rosgraph_msgs.rs"));} -pub mod unique_identifier_msgs{include!(concat!(env!("OUT_DIR"), "/unique_identifier_msgs.rs"));} -pub mod std_msgs{include!(concat!(env!("OUT_DIR"), "/std_msgs.rs"));} -pub mod nav_msgs{include!(concat!(env!("OUT_DIR"), "/nav_msgs.rs"));} +pub mod action_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/action_msgs.rs")) ; } pub mod actionlib_msgs { include ! (concat ! (env ! ("OUT_DIR") , "/actionlib_msgs.rs")) ; } pub mod builtin_interfaces { include ! (concat ! (env ! ("OUT_DIR") , "/builtin_interfaces.rs")) ; } pub mod composition_interfaces { include ! (concat ! (env ! ("OUT_DIR") , "/composition_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 rmw_dds_common { include ! (concat ! (env ! ("OUT_DIR") , "/rmw_dds_common.rs")) ; } pub mod rosbag2_interfaces { include ! (concat ! (env ! ("OUT_DIR") , "/rosbag2_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 std_srvs { include ! (concat ! (env ! ("OUT_DIR") , "/std_srvs.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")) ; } \ No newline at end of file diff --git a/r2r/bindings/_r2r_generated_service_helper.rs b/r2r/bindings/_r2r_generated_service_helper.rs index 4407cb2..9db2665 100644 --- a/r2r/bindings/_r2r_generated_service_helper.rs +++ b/r2r/bindings/_r2r_generated_service_helper.rs @@ -1,163 +1 @@ - -impl UntypedServiceSupport { - pub fn new_from(typename: &str) -> Result { - - if typename == "action_msgs/srv/CancelGoal" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "composition_interfaces/srv/ListNodes" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "composition_interfaces/srv/LoadNode" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "composition_interfaces/srv/UnloadNode" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "diagnostic_msgs/srv/AddDiagnostics" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "diagnostic_msgs/srv/SelfTest" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "lifecycle_msgs/srv/ChangeState" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "lifecycle_msgs/srv/GetAvailableStates" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "lifecycle_msgs/srv/GetAvailableTransitions" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "lifecycle_msgs/srv/GetState" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "nav_msgs/srv/GetMap" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "nav_msgs/srv/GetPlan" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "nav_msgs/srv/LoadMap" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "nav_msgs/srv/SetMap" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rcl_interfaces/srv/DescribeParameters" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rcl_interfaces/srv/GetParameterTypes" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rcl_interfaces/srv/GetParameters" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rcl_interfaces/srv/ListParameters" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rcl_interfaces/srv/SetParameters" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rcl_interfaces/srv/SetParametersAtomically" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rosbag2_interfaces/srv/Burst" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rosbag2_interfaces/srv/GetRate" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rosbag2_interfaces/srv/IsPaused" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rosbag2_interfaces/srv/Pause" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rosbag2_interfaces/srv/PlayNext" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rosbag2_interfaces/srv/Resume" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rosbag2_interfaces/srv/Seek" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rosbag2_interfaces/srv/SetRate" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rosbag2_interfaces/srv/Snapshot" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "rosbag2_interfaces/srv/TogglePaused" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "sensor_msgs/srv/SetCameraInfo" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "std_srvs/srv/Empty" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "std_srvs/srv/SetBool" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "std_srvs/srv/Trigger" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "test_msgs/srv/Arrays" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "test_msgs/srv/BasicTypes" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "test_msgs/srv/Empty" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "tf2_msgs/srv/FrameGraph" { - return Ok(UntypedServiceSupport::new::()); - } - - if typename == "visualization_msgs/srv/GetInteractiveMarkers" { - return Ok(UntypedServiceSupport::new::()); - } - - return Err(Error::InvalidMessageType{ msgtype: typename.into() }) - } -} +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_composition_interfaces_srv_ListNodes () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < composition_interfaces :: srv :: ListNodes :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_composition_interfaces_srv_LoadNode () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < composition_interfaces :: srv :: LoadNode :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_composition_interfaces_srv_UnloadNode () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < composition_interfaces :: srv :: UnloadNode :: 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_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_rosbag2_interfaces_srv_Burst () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rosbag2_interfaces :: srv :: Burst :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rosbag2_interfaces_srv_GetRate () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rosbag2_interfaces :: srv :: GetRate :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rosbag2_interfaces_srv_IsPaused () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rosbag2_interfaces :: srv :: IsPaused :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rosbag2_interfaces_srv_Pause () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rosbag2_interfaces :: srv :: Pause :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rosbag2_interfaces_srv_PlayNext () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rosbag2_interfaces :: srv :: PlayNext :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rosbag2_interfaces_srv_Resume () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rosbag2_interfaces :: srv :: Resume :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rosbag2_interfaces_srv_Seek () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rosbag2_interfaces :: srv :: Seek :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rosbag2_interfaces_srv_SetRate () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rosbag2_interfaces :: srv :: SetRate :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rosbag2_interfaces_srv_Snapshot () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rosbag2_interfaces :: srv :: Snapshot :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_rosbag2_interfaces_srv_TogglePaused () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < rosbag2_interfaces :: srv :: TogglePaused :: 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_std_srvs_srv_Empty () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < std_srvs :: srv :: Empty :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_std_srvs_srv_SetBool () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < std_srvs :: srv :: SetBool :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_std_srvs_srv_Trigger () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < std_srvs :: srv :: Trigger :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_test_msgs_srv_Arrays () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < test_msgs :: srv :: Arrays :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_test_msgs_srv_BasicTypes () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < test_msgs :: srv :: BasicTypes :: Service > () } # [allow (non_snake_case)] fn new_untyped_service_support_test_msgs_srv_Empty () -> UntypedServiceSupport { UntypedServiceSupport :: new :: < test_msgs :: srv :: Empty :: 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 , "composition_interfaces/srv/ListNodes" => new_untyped_service_support_composition_interfaces_srv_ListNodes , "composition_interfaces/srv/LoadNode" => new_untyped_service_support_composition_interfaces_srv_LoadNode , "composition_interfaces/srv/UnloadNode" => new_untyped_service_support_composition_interfaces_srv_UnloadNode , "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 , "rosbag2_interfaces/srv/Burst" => new_untyped_service_support_rosbag2_interfaces_srv_Burst , "rosbag2_interfaces/srv/GetRate" => new_untyped_service_support_rosbag2_interfaces_srv_GetRate , "rosbag2_interfaces/srv/IsPaused" => new_untyped_service_support_rosbag2_interfaces_srv_IsPaused , "rosbag2_interfaces/srv/Pause" => new_untyped_service_support_rosbag2_interfaces_srv_Pause , "rosbag2_interfaces/srv/PlayNext" => new_untyped_service_support_rosbag2_interfaces_srv_PlayNext , "rosbag2_interfaces/srv/Resume" => new_untyped_service_support_rosbag2_interfaces_srv_Resume , "rosbag2_interfaces/srv/Seek" => new_untyped_service_support_rosbag2_interfaces_srv_Seek , "rosbag2_interfaces/srv/SetRate" => new_untyped_service_support_rosbag2_interfaces_srv_SetRate , "rosbag2_interfaces/srv/Snapshot" => new_untyped_service_support_rosbag2_interfaces_srv_Snapshot , "rosbag2_interfaces/srv/TogglePaused" => new_untyped_service_support_rosbag2_interfaces_srv_TogglePaused , "sensor_msgs/srv/SetCameraInfo" => new_untyped_service_support_sensor_msgs_srv_SetCameraInfo , "std_srvs/srv/Empty" => new_untyped_service_support_std_srvs_srv_Empty , "std_srvs/srv/SetBool" => new_untyped_service_support_std_srvs_srv_SetBool , "std_srvs/srv/Trigger" => new_untyped_service_support_std_srvs_srv_Trigger , "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 ()) } } \ No newline at end of file diff --git a/r2r/bindings/_r2r_generated_untyped_helper.rs b/r2r/bindings/_r2r_generated_untyped_helper.rs index a1bb49e..cf4bafb 100644 --- a/r2r/bindings/_r2r_generated_untyped_helper.rs +++ b/r2r/bindings/_r2r_generated_untyped_helper.rs @@ -1,659 +1 @@ - -impl WrappedNativeMsgUntyped { - pub fn new_from(typename: &str) -> Result { - - if typename == "action_msgs/msg/GoalInfo" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "action_msgs/msg/GoalStatus" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "action_msgs/msg/GoalStatusArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "actionlib_msgs/msg/GoalID" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "actionlib_msgs/msg/GoalStatus" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "actionlib_msgs/msg/GoalStatusArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "builtin_interfaces/msg/Duration" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "builtin_interfaces/msg/Time" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "diagnostic_msgs/msg/DiagnosticArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "diagnostic_msgs/msg/DiagnosticStatus" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "diagnostic_msgs/msg/KeyValue" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/Accel" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/AccelStamped" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/AccelWithCovariance" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/AccelWithCovarianceStamped" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/Inertia" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/InertiaStamped" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/Point" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/Point32" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/PointStamped" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/Polygon" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/PolygonStamped" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/Pose" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/Pose2D" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/PoseArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/PoseStamped" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/PoseWithCovariance" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/PoseWithCovarianceStamped" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/Quaternion" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/QuaternionStamped" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/Transform" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/TransformStamped" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/Twist" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/TwistStamped" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/TwistWithCovariance" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/TwistWithCovarianceStamped" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/Vector3" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/Vector3Stamped" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/Wrench" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "geometry_msgs/msg/WrenchStamped" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "lifecycle_msgs/msg/State" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "lifecycle_msgs/msg/Transition" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "lifecycle_msgs/msg/TransitionDescription" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "lifecycle_msgs/msg/TransitionEvent" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "nav_msgs/msg/GridCells" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "nav_msgs/msg/MapMetaData" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "nav_msgs/msg/OccupancyGrid" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "nav_msgs/msg/Odometry" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "nav_msgs/msg/Path" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rcl_interfaces/msg/FloatingPointRange" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rcl_interfaces/msg/IntegerRange" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rcl_interfaces/msg/ListParametersResult" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rcl_interfaces/msg/Log" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rcl_interfaces/msg/Parameter" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rcl_interfaces/msg/ParameterDescriptor" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rcl_interfaces/msg/ParameterEvent" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rcl_interfaces/msg/ParameterEventDescriptors" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rcl_interfaces/msg/ParameterType" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rcl_interfaces/msg/ParameterValue" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rcl_interfaces/msg/SetParametersResult" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rmw_dds_common/msg/Gid" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rmw_dds_common/msg/NodeEntitiesInfo" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rmw_dds_common/msg/ParticipantEntitiesInfo" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rosbag2_interfaces/msg/ReadSplitEvent" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rosbag2_interfaces/msg/WriteSplitEvent" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "rosgraph_msgs/msg/Clock" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/BatteryState" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/CameraInfo" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/ChannelFloat32" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/CompressedImage" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/FluidPressure" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/Illuminance" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/Image" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/Imu" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/JointState" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/Joy" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/JoyFeedback" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/JoyFeedbackArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/LaserEcho" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/LaserScan" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/MagneticField" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/MultiDOFJointState" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/MultiEchoLaserScan" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/NavSatFix" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/NavSatStatus" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/PointCloud" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/PointCloud2" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/PointField" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/Range" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/RegionOfInterest" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/RelativeHumidity" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/Temperature" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "sensor_msgs/msg/TimeReference" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "shape_msgs/msg/Mesh" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "shape_msgs/msg/MeshTriangle" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "shape_msgs/msg/Plane" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "shape_msgs/msg/SolidPrimitive" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "statistics_msgs/msg/MetricsMessage" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "statistics_msgs/msg/StatisticDataPoint" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "statistics_msgs/msg/StatisticDataType" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Bool" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Byte" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/ByteMultiArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Char" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/ColorRGBA" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Empty" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Float32" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Float32MultiArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Float64" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Float64MultiArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Header" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Int16" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Int16MultiArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Int32" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Int32MultiArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Int64" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Int64MultiArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Int8" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/Int8MultiArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/MultiArrayDimension" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/MultiArrayLayout" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/String" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/UInt16" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/UInt16MultiArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/UInt32" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/UInt32MultiArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/UInt64" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/UInt64MultiArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/UInt8" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "std_msgs/msg/UInt8MultiArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "stereo_msgs/msg/DisparityImage" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "test_msgs/msg/Arrays" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "test_msgs/msg/BasicTypes" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "test_msgs/msg/BoundedPlainSequences" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "test_msgs/msg/BoundedSequences" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "test_msgs/msg/Builtins" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "test_msgs/msg/Constants" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "test_msgs/msg/Defaults" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "test_msgs/msg/Empty" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "test_msgs/msg/MultiNested" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "test_msgs/msg/Nested" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "test_msgs/msg/Strings" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "test_msgs/msg/UnboundedSequences" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "test_msgs/msg/WStrings" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "tf2_msgs/msg/TF2Error" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "tf2_msgs/msg/TFMessage" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "trajectory_msgs/msg/JointTrajectory" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "trajectory_msgs/msg/JointTrajectoryPoint" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "trajectory_msgs/msg/MultiDOFJointTrajectory" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "trajectory_msgs/msg/MultiDOFJointTrajectoryPoint" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "unique_identifier_msgs/msg/UUID" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "visualization_msgs/msg/ImageMarker" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "visualization_msgs/msg/InteractiveMarker" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "visualization_msgs/msg/InteractiveMarkerControl" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "visualization_msgs/msg/InteractiveMarkerFeedback" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "visualization_msgs/msg/InteractiveMarkerInit" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "visualization_msgs/msg/InteractiveMarkerPose" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "visualization_msgs/msg/InteractiveMarkerUpdate" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "visualization_msgs/msg/Marker" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "visualization_msgs/msg/MarkerArray" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "visualization_msgs/msg/MenuEntry" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "visualization_msgs/msg/MeshFile" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - if typename == "visualization_msgs/msg/UVCoordinate" { - return Ok(WrappedNativeMsgUntyped::new::()); - } - - return Err(Error::InvalidMessageType{ msgtype: typename.into() }) - } -} +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_actionlib_msgs_msg_GoalID () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < actionlib_msgs :: msg :: GoalID > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_actionlib_msgs_msg_GoalStatus () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < actionlib_msgs :: msg :: GoalStatus > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_actionlib_msgs_msg_GoalStatusArray () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < actionlib_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_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_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_rmw_dds_common_msg_Gid () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rmw_dds_common :: msg :: Gid > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rmw_dds_common_msg_NodeEntitiesInfo () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rmw_dds_common :: msg :: NodeEntitiesInfo > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rmw_dds_common_msg_ParticipantEntitiesInfo () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rmw_dds_common :: msg :: ParticipantEntitiesInfo > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rosbag2_interfaces_msg_ReadSplitEvent () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rosbag2_interfaces :: msg :: ReadSplitEvent > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_rosbag2_interfaces_msg_WriteSplitEvent () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < rosbag2_interfaces :: msg :: WriteSplitEvent > () } # [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_test_msgs_msg_Arrays () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < test_msgs :: msg :: Arrays > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_test_msgs_msg_BasicTypes () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < test_msgs :: msg :: BasicTypes > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_test_msgs_msg_BoundedPlainSequences () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < test_msgs :: msg :: BoundedPlainSequences > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_test_msgs_msg_BoundedSequences () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < test_msgs :: msg :: BoundedSequences > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_test_msgs_msg_Builtins () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < test_msgs :: msg :: Builtins > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_test_msgs_msg_Constants () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < test_msgs :: msg :: Constants > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_test_msgs_msg_Defaults () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < test_msgs :: msg :: Defaults > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_test_msgs_msg_Empty () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < test_msgs :: msg :: Empty > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_test_msgs_msg_MultiNested () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < test_msgs :: msg :: MultiNested > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_test_msgs_msg_Nested () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < test_msgs :: msg :: Nested > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_test_msgs_msg_Strings () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < test_msgs :: msg :: Strings > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_test_msgs_msg_UnboundedSequences () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < test_msgs :: msg :: UnboundedSequences > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_test_msgs_msg_WStrings () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < test_msgs :: msg :: WStrings > () } # [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 > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_visualization_msgs_msg_MeshFile () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < visualization_msgs :: msg :: MeshFile > () } # [allow (non_snake_case)] fn new_wrapped_native_msg_untyped_visualization_msgs_msg_UVCoordinate () -> WrappedNativeMsgUntyped { WrappedNativeMsgUntyped :: new :: < visualization_msgs :: msg :: UVCoordinate > () } 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 , "actionlib_msgs/msg/GoalID" => new_wrapped_native_msg_untyped_actionlib_msgs_msg_GoalID , "actionlib_msgs/msg/GoalStatus" => new_wrapped_native_msg_untyped_actionlib_msgs_msg_GoalStatus , "actionlib_msgs/msg/GoalStatusArray" => new_wrapped_native_msg_untyped_actionlib_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 , "rmw_dds_common/msg/Gid" => new_wrapped_native_msg_untyped_rmw_dds_common_msg_Gid , "rmw_dds_common/msg/NodeEntitiesInfo" => new_wrapped_native_msg_untyped_rmw_dds_common_msg_NodeEntitiesInfo , "rmw_dds_common/msg/ParticipantEntitiesInfo" => new_wrapped_native_msg_untyped_rmw_dds_common_msg_ParticipantEntitiesInfo , "rosbag2_interfaces/msg/ReadSplitEvent" => new_wrapped_native_msg_untyped_rosbag2_interfaces_msg_ReadSplitEvent , "rosbag2_interfaces/msg/WriteSplitEvent" => new_wrapped_native_msg_untyped_rosbag2_interfaces_msg_WriteSplitEvent , "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 ()) } } \ No newline at end of file diff --git a/r2r/bindings/action_msgs.rs b/r2r/bindings/action_msgs.rs index 6a3abaa..0d5990f 100644 --- a/r2r/bindings/action_msgs.rs +++ b/r2r/bindings/action_msgs.rs @@ -1,363 +1 @@ - 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(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, 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 { - - 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(msg: &Self::CStruct) -> GoalStatus { - GoalStatus { -goal_info: action_msgs::msg::GoalInfo::from_native(&msg.goal_info), -status: msg.status, - } - } - - - - fn copy_to_native(&self, 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_UNKNOWN: _bindgen_ty_1 = action_msgs__msg__GoalStatus__STATUS_UNKNOWN; - pub const STATUS_ACCEPTED: _bindgen_ty_2 = action_msgs__msg__GoalStatus__STATUS_ACCEPTED; - pub const STATUS_EXECUTING: _bindgen_ty_3 = action_msgs__msg__GoalStatus__STATUS_EXECUTING; - pub const STATUS_CANCELING: _bindgen_ty_4 = action_msgs__msg__GoalStatus__STATUS_CANCELING; - pub const STATUS_SUCCEEDED: _bindgen_ty_5 = action_msgs__msg__GoalStatus__STATUS_SUCCEEDED; - pub const STATUS_CANCELED: _bindgen_ty_6 = action_msgs__msg__GoalStatus__STATUS_CANCELED; - pub const STATUS_ABORTED: _bindgen_ty_7 = action_msgs__msg__GoalStatus__STATUS_ABORTED; - } - - - - - #[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 { - - 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(msg: &Self::CStruct) -> GoalStatusArray { - GoalStatusArray { -// is_upper_bound_: false -// member.array_size_ : 0 -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, msg: &mut Self::CStruct) {unsafe { action_msgs__msg__GoalStatus__Sequence__fini(&mut msg.status_list) }; -unsafe { action_msgs__msg__GoalStatus__Sequence__init(&mut msg.status_list, self.status_list.len()) }; -let slice = unsafe { 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) - } - } - - - - - - } - 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(msg: &Self::CStruct) -> Request { - Request { -goal_info: action_msgs::msg::GoalInfo::from_native(&msg.goal_info), - } - } - - - - fn copy_to_native(&self, 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 { - - 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(msg: &Self::CStruct) -> Response { - Response { -return_code: msg.return_code, -// is_upper_bound_: false -// member.array_size_ : 0 -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, msg: &mut Self::CStruct) {msg.return_code = self.return_code; -unsafe { action_msgs__msg__GoalInfo__Sequence__fini(&mut msg.goals_canceling) }; -unsafe { action_msgs__msg__GoalInfo__Sequence__init(&mut msg.goals_canceling, self.goals_canceling.len()) }; -let slice = unsafe { 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_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 const ERROR_GOAL_TERMINATED: _bindgen_ty_11 = action_msgs__srv__CancelGoal_Response__ERROR_GOAL_TERMINATED; - } - - - - } - } +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 ; } } } 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) } } } \ No newline at end of file diff --git a/r2r/bindings/actionlib_msgs.rs b/r2r/bindings/actionlib_msgs.rs index 8dba5eb..49a3cf5 100644 --- a/r2r/bindings/actionlib_msgs.rs +++ b/r2r/bindings/actionlib_msgs.rs @@ -1,215 +1 @@ - pub mod msg { - use super::super::*; - - #[derive(Clone,Debug,PartialEq,Serialize,Deserialize)] - #[serde(default)] - pub struct GoalID { - - pub stamp: builtin_interfaces::msg::Time, -pub id: std::string::String, - - } - - impl WrappedTypesupport for GoalID { - - type CStruct = actionlib_msgs__msg__GoalID; - - - fn get_ts() -> &'static rosidl_message_type_support_t { - - unsafe { &*rosidl_typesupport_c__get_message_type_support_handle__actionlib_msgs__msg__GoalID() } - } - - fn create_msg() -> *mut actionlib_msgs__msg__GoalID { - - unsafe { actionlib_msgs__msg__GoalID__create() } - - } - - fn destroy_msg(msg: *mut actionlib_msgs__msg__GoalID) -> () { - - unsafe { actionlib_msgs__msg__GoalID__destroy(msg) }; - - } - - fn from_native(msg: &Self::CStruct) -> GoalID { - GoalID { -stamp: builtin_interfaces::msg::Time::from_native(&msg.stamp), -id: msg.id.to_str().to_owned(), - } - } - - - - fn copy_to_native(&self, msg: &mut Self::CStruct) {self.stamp.copy_to_native(&mut msg.stamp); -msg.id.assign(&self.id); -} - - - - } - - - - impl Default for GoalID { - fn default() -> Self { - let msg_native = WrappedNativeMsg::::new(); - GoalID::from_native(&msg_native) - } - } - - - - - - - #[derive(Clone,Debug,PartialEq,Serialize,Deserialize)] - #[serde(default)] - pub struct GoalStatus { - - pub goal_id: actionlib_msgs::msg::GoalID, -pub status: u8, -pub text: std::string::String, - - } - - impl WrappedTypesupport for GoalStatus { - - type CStruct = actionlib_msgs__msg__GoalStatus; - - - fn get_ts() -> &'static rosidl_message_type_support_t { - - unsafe { &*rosidl_typesupport_c__get_message_type_support_handle__actionlib_msgs__msg__GoalStatus() } - } - - fn create_msg() -> *mut actionlib_msgs__msg__GoalStatus { - - unsafe { actionlib_msgs__msg__GoalStatus__create() } - - } - - fn destroy_msg(msg: *mut actionlib_msgs__msg__GoalStatus) -> () { - - unsafe { actionlib_msgs__msg__GoalStatus__destroy(msg) }; - - } - - fn from_native(msg: &Self::CStruct) -> GoalStatus { - GoalStatus { -goal_id: actionlib_msgs::msg::GoalID::from_native(&msg.goal_id), -status: msg.status, -text: msg.text.to_str().to_owned(), - } - } - - - - fn copy_to_native(&self, msg: &mut Self::CStruct) {self.goal_id.copy_to_native(&mut msg.goal_id); -msg.status = self.status; -msg.text.assign(&self.text); -} - - - - } - - - - 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 PENDING: _bindgen_ty_12 = actionlib_msgs__msg__GoalStatus__PENDING; - pub const ACTIVE: _bindgen_ty_13 = actionlib_msgs__msg__GoalStatus__ACTIVE; - pub const PREEMPTED: _bindgen_ty_14 = actionlib_msgs__msg__GoalStatus__PREEMPTED; - pub const SUCCEEDED: _bindgen_ty_15 = actionlib_msgs__msg__GoalStatus__SUCCEEDED; - pub const ABORTED: _bindgen_ty_16 = actionlib_msgs__msg__GoalStatus__ABORTED; - pub const REJECTED: _bindgen_ty_17 = actionlib_msgs__msg__GoalStatus__REJECTED; - pub const PREEMPTING: _bindgen_ty_18 = actionlib_msgs__msg__GoalStatus__PREEMPTING; - pub const RECALLING: _bindgen_ty_19 = actionlib_msgs__msg__GoalStatus__RECALLING; - pub const RECALLED: _bindgen_ty_20 = actionlib_msgs__msg__GoalStatus__RECALLED; - pub const LOST: _bindgen_ty_21 = actionlib_msgs__msg__GoalStatus__LOST; - } - - - - - #[derive(Clone,Debug,PartialEq,Serialize,Deserialize)] - #[serde(default)] - pub struct GoalStatusArray { - - pub header: std_msgs::msg::Header, -pub status_list: Vec, - - } - - impl WrappedTypesupport for GoalStatusArray { - - type CStruct = actionlib_msgs__msg__GoalStatusArray; - - - fn get_ts() -> &'static rosidl_message_type_support_t { - - unsafe { &*rosidl_typesupport_c__get_message_type_support_handle__actionlib_msgs__msg__GoalStatusArray() } - } - - fn create_msg() -> *mut actionlib_msgs__msg__GoalStatusArray { - - unsafe { actionlib_msgs__msg__GoalStatusArray__create() } - - } - - fn destroy_msg(msg: *mut actionlib_msgs__msg__GoalStatusArray) -> () { - - unsafe { actionlib_msgs__msg__GoalStatusArray__destroy(msg) }; - - } - - fn from_native(msg: &Self::CStruct) -> GoalStatusArray { - GoalStatusArray { -header: std_msgs::msg::Header::from_native(&msg.header), -// is_upper_bound_: false -// member.array_size_ : 0 -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(actionlib_msgs::msg::GoalStatus::from_native(s)); } -temp }, - } - } - - - - fn copy_to_native(&self, msg: &mut Self::CStruct) {self.header.copy_to_native(&mut msg.header); -unsafe { actionlib_msgs__msg__GoalStatus__Sequence__fini(&mut msg.status_list) }; -unsafe { actionlib_msgs__msg__GoalStatus__Sequence__init(&mut msg.status_list, self.status_list.len()) }; -let slice = unsafe { 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) - } - } - - - - - - } +pub mod msg { use super :: super :: * ; # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] # [serde (default)] pub struct GoalID { pub stamp : builtin_interfaces :: msg :: Time , pub id : std :: string :: String } impl WrappedTypesupport for GoalID { type CStruct = actionlib_msgs__msg__GoalID ; fn get_ts () -> & 'static rosidl_message_type_support_t { unsafe { & * rosidl_typesupport_c__get_message_type_support_handle__actionlib_msgs__msg__GoalID () } } fn create_msg () -> * mut actionlib_msgs__msg__GoalID { unsafe { actionlib_msgs__msg__GoalID__create () } } fn destroy_msg (msg : * mut actionlib_msgs__msg__GoalID) -> () { unsafe { actionlib_msgs__msg__GoalID__destroy (msg) } ; } fn from_native (# [allow (unused)] msg : & Self :: CStruct) -> GoalID { GoalID { stamp : builtin_interfaces :: msg :: Time :: from_native (& msg . stamp) , id : msg . id . to_str () . to_owned () , } } fn copy_to_native (& self , # [allow (unused)] msg : & mut Self :: CStruct) { self . stamp . copy_to_native (& mut msg . stamp) ; msg . id . assign (& self . id) ; } } impl Default for GoalID { fn default () -> Self { let msg_native = WrappedNativeMsg :: < GoalID > :: new () ; GoalID :: from_native (& msg_native) } } # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] # [serde (default)] pub struct GoalStatus { pub goal_id : actionlib_msgs :: msg :: GoalID , pub status : u8 , pub text : std :: string :: String } impl WrappedTypesupport for GoalStatus { type CStruct = actionlib_msgs__msg__GoalStatus ; fn get_ts () -> & 'static rosidl_message_type_support_t { unsafe { & * rosidl_typesupport_c__get_message_type_support_handle__actionlib_msgs__msg__GoalStatus () } } fn create_msg () -> * mut actionlib_msgs__msg__GoalStatus { unsafe { actionlib_msgs__msg__GoalStatus__create () } } fn destroy_msg (msg : * mut actionlib_msgs__msg__GoalStatus) -> () { unsafe { actionlib_msgs__msg__GoalStatus__destroy (msg) } ; } fn from_native (# [allow (unused)] msg : & Self :: CStruct) -> GoalStatus { GoalStatus { goal_id : actionlib_msgs :: msg :: GoalID :: from_native (& msg . goal_id) , status : msg . status , text : msg . text . to_str () . to_owned () , } } fn copy_to_native (& self , # [allow (unused)] msg : & mut Self :: CStruct) { self . goal_id . copy_to_native (& mut msg . goal_id) ; msg . status = self . status ; msg . text . assign (& self . text) ; } } 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 ABORTED : _bindgen_ty_16 = actionlib_msgs__msg__GoalStatus__ABORTED ; pub const ACTIVE : _bindgen_ty_13 = actionlib_msgs__msg__GoalStatus__ACTIVE ; pub const LOST : _bindgen_ty_21 = actionlib_msgs__msg__GoalStatus__LOST ; pub const PENDING : _bindgen_ty_12 = actionlib_msgs__msg__GoalStatus__PENDING ; pub const PREEMPTED : _bindgen_ty_14 = actionlib_msgs__msg__GoalStatus__PREEMPTED ; pub const PREEMPTING : _bindgen_ty_18 = actionlib_msgs__msg__GoalStatus__PREEMPTING ; pub const RECALLED : _bindgen_ty_20 = actionlib_msgs__msg__GoalStatus__RECALLED ; pub const RECALLING : _bindgen_ty_19 = actionlib_msgs__msg__GoalStatus__RECALLING ; pub const REJECTED : _bindgen_ty_17 = actionlib_msgs__msg__GoalStatus__REJECTED ; pub const SUCCEEDED : _bindgen_ty_15 = actionlib_msgs__msg__GoalStatus__SUCCEEDED ; } # [derive (Clone , Debug , PartialEq , Serialize , Deserialize)] # [serde (default)] pub struct GoalStatusArray { pub header : std_msgs :: msg :: Header , pub status_list : Vec < actionlib_msgs :: msg :: GoalStatus > } impl WrappedTypesupport for GoalStatusArray { type CStruct = actionlib_msgs__msg__GoalStatusArray ; fn get_ts () -> & 'static rosidl_message_type_support_t { unsafe { & * rosidl_typesupport_c__get_message_type_support_handle__actionlib_msgs__msg__GoalStatusArray () } } fn create_msg () -> * mut actionlib_msgs__msg__GoalStatusArray { unsafe { actionlib_msgs__msg__GoalStatusArray__create () } } fn destroy_msg (msg : * mut actionlib_msgs__msg__GoalStatusArray) -> () { unsafe { actionlib_msgs__msg__GoalStatusArray__destroy (msg) } ; } fn from_native (# [allow (unused)] msg : & Self :: CStruct) -> GoalStatusArray { GoalStatusArray { header : std_msgs :: msg :: Header :: from_native (& msg . header) , 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 (actionlib_msgs :: msg :: GoalStatus :: from_native (s)) ; } temp } , } } fn copy_to_native (& self , # [allow (unused)] msg : & mut Self :: CStruct) { self . header . copy_to_native (& mut msg . header) ; unsafe { actionlib_msgs__msg__GoalStatus__Sequence__fini (& mut msg . status_list) ; actionlib_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) } } } \ No newline at end of file diff --git a/r2r/bindings/builtin_interfaces.rs b/r2r/bindings/builtin_interfaces.rs index 9ca44ff..ee002c4 100644 --- a/r2r/bindings/builtin_interfaces.rs +++ b/r2r/bindings/builtin_interfaces.rs @@ -1,127 +1 @@ - 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(msg: &Self::CStruct) -> Duration { - Duration { -sec: msg.sec, -nanosec: msg.nanosec, - } - } - - - - fn copy_to_native(&self, 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 { - - 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(msg: &Self::CStruct) -> Time { - Time { -sec: msg.sec, -nanosec: msg.nanosec, - } - } - - - - fn copy_to_native(&self, msg: &mut Self::CStruct) {msg.sec = self.sec; -msg.nanosec = self.nanosec; -} - - - - } - - - - impl Default for Time { - fn default() -> Self { - let msg_native = WrappedNativeMsg::